diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-04-14 12:02:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 12:02:03 +0000 |
commit | 6176f16de289b88b0314f1e66ecc68d408f37063 (patch) | |
tree | 582c4ce0d49912d0cab8632aa171a2b968ea8a0e /pkgs/build-support/cc-wrapper | |
parent | ecbbd3104f536083ae52bca1c6e9262b17ed79ff (diff) | |
parent | e3d9654fec2011d3d5193e01980ac16973920642 (diff) | |
download | nixpkgs-6176f16de289b88b0314f1e66ecc68d408f37063.tar nixpkgs-6176f16de289b88b0314f1e66ecc68d408f37063.tar.gz nixpkgs-6176f16de289b88b0314f1e66ecc68d408f37063.tar.bz2 nixpkgs-6176f16de289b88b0314f1e66ecc68d408f37063.tar.lz nixpkgs-6176f16de289b88b0314f1e66ecc68d408f37063.tar.xz nixpkgs-6176f16de289b88b0314f1e66ecc68d408f37063.tar.zst nixpkgs-6176f16de289b88b0314f1e66ecc68d408f37063.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/build-support/cc-wrapper')
-rw-r--r-- | pkgs/build-support/cc-wrapper/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index 25aa558638f..3b6f395beed 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -160,7 +160,7 @@ assert nativePrefix == bintools.nativePrefix; stdenv.mkDerivation { pname = targetPrefix + (if name != "" then name else "${ccName}-wrapper"); - version = if cc == null then null else ccVersion; + version = if cc == null then "" else ccVersion; preferLocalBuild = true; @@ -597,8 +597,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; }; |