Merge pull request #56219 from Ericson2314/more-stdenvNoLibs

gccStdenvNoLibs, clangStdenvNoLibs: Init; libgcc: Use gccStdenvNoLibs
This commit is contained in:
John Ericson 2019-02-22 17:32:09 -05:00 committed by GitHub
commit f6d6daa82b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ in
stdenvNoCC = stdenv.override { cc = null; extraAttrs.noCC = true; };
stdenvNoLibs = let
mkStdenvNoLibs = stdenv: let
bintools = stdenv.cc.bintools.override {
libc = null;
noLibc = true;
@ -51,6 +51,11 @@ in
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.
path = ../..;
@ -8553,7 +8558,9 @@ in
librarian-puppet-go = callPackage ../development/tools/librarian-puppet-go { };
libgcc = callPackage ../development/libraries/gcc/libgcc { };
libgcc = callPackage ../development/libraries/gcc/libgcc {
stdenvNoLibs = gccStdenvNoLibs; # cannot be built with clang it seems
};
libstdcxx5 = callPackage ../development/libraries/gcc/libstdc++/5.nix { };