diff options
author | Andrew Childs <lorne@cons.org.nz> | 2020-11-19 16:57:29 +0900 |
---|---|---|
committer | Andrew Childs <lorne@cons.org.nz> | 2021-03-02 17:21:08 +0900 |
commit | fc0456bed1372ccff51fc6fd578e5d2a09d64534 (patch) | |
tree | 868d224258a449310455889e8e476e7cf58c798e /pkgs/build-support | |
parent | d16a8753d91365d0239eec9549b11e7a61c1c61b (diff) |
cc-wrapper: set -arch on darwin
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/cc-wrapper/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index c8af8789fccf..06e43b6ea5f1 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -481,6 +481,10 @@ stdenv.mkDerivation { substituteAll ${../wrapper-common/utils.bash} $out/nix-support/utils.bash '' + + optionalString stdenv.targetPlatform.isDarwin '' + echo "-arch ${targetPlatform.darwinArch}" >> $out/nix-support/cc-cflags + '' + ## ## Extra custom steps ## |