Merge pull request #120080 from Radvendii/cc-wrapper-lib

stdenv/{native,nix}: add lib to cc-wrapper args
This commit is contained in:
John Ericson 2021-04-22 01:05:22 -04:00 committed by GitHub
commit fce51c8457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -129,7 +129,7 @@ in
name = "cc-native";
nativeTools = true;
nativeLibc = true;
inherit nativePrefix;
inherit lib nativePrefix;
bintools = import ../../build-support/bintools-wrapper {
name = "bintools";
inherit stdenvNoCC nativePrefix;

View file

@ -24,6 +24,7 @@ bootStages ++ [
initialPath = (import ../common-path.nix) { pkgs = prevStage; };
cc = import ../../build-support/cc-wrapper {
inherit lib;
nativeTools = false;
nativePrefix = lib.optionalString hostPlatform.isSunOS "/usr";
nativeLibc = true;