cc-wrapper: don't set env to null when nativeTools is used

This is not allowed and fails fatal
This commit is contained in:
Sandro Jäckel
2023-04-12 22:08:36 +02:00
parent b0ee79f9fd
commit a7dbdb7644
+4 -1
View File
@@ -550,8 +550,11 @@ stdenv.mkDerivation {
expandResponseParams = "${expand-response-params}/bin/expand-response-params";
shell = getBin shell + shell.shellPath or "";
gnugrep_bin = if nativeTools then "" else gnugrep;
# stdenv.cc.cc should not be null and we have nothing better for now.
# if the native impure bootstrap is gotten rid of this can become `inherit cc;` again.
cc = if nativeTools then "" else cc;
wrapperName = "CC_WRAPPER";
inherit suffixSalt coreutils_bin bintools cc;
inherit suffixSalt coreutils_bin bintools;
inherit libc_bin libc_dev libc_lib;
inherit darwinPlatformForCC darwinMinVersion darwinMinVersionVariable;
};