gccStdenvNoLibs, clangStdenvNoLibs: Init
libgcc can only be built with gcc evidentally, so we need a way for Darwin to force gcc without bringing in the other default library dependencies libgcc doesn't---and shouldn't---need.
This commit is contained in:
parent
bd2b0d0886
commit
16cc323d7c
@ -35,7 +35,7 @@ in
|
|||||||
|
|
||||||
stdenvNoCC = stdenv.override { cc = null; extraAttrs.noCC = true; };
|
stdenvNoCC = stdenv.override { cc = null; extraAttrs.noCC = true; };
|
||||||
|
|
||||||
stdenvNoLibs = let
|
mkStdenvNoLibs = stdenv: let
|
||||||
bintools = stdenv.cc.bintools.override {
|
bintools = stdenv.cc.bintools.override {
|
||||||
libc = null;
|
libc = null;
|
||||||
noLibc = true;
|
noLibc = true;
|
||||||
@ -51,6 +51,11 @@ in
|
|||||||
lib.mapNullable (rs: rs ++ [ bintools ]) (stdenv.allowedRequisites or null);
|
lib.mapNullable (rs: rs ++ [ bintools ]) (stdenv.allowedRequisites or null);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
stdenvNoLibs = mkStdenvNoLibs stdenv;
|
||||||
|
|
||||||
|
gccStdenvNoLibs = mkStdenvNoLibs gccStdenv;
|
||||||
|
clangStdenvNoLibs = mkStdenvNoLibs clangStdenv;
|
||||||
|
|
||||||
# For convenience, allow callers to get the path to Nixpkgs.
|
# For convenience, allow callers to get the path to Nixpkgs.
|
||||||
path = ../..;
|
path = ../..;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user