summary refs log tree commit diff
path: root/pkgs/stdenv/darwin/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2017-05-21 14:51:02 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-06-22 17:52:27 -0400
commitc4ba2e3ef691c349bcce2b1e8b76a0bcd253544c (patch)
treec83f3c3b37e42462fc7b60c8bfa39f856f569c38 /pkgs/stdenv/darwin/default.nix
parent8f970d09fe8e895b6bb7dbf52f80411a45504b19 (diff)
downloadnixlib-c4ba2e3ef691c349bcce2b1e8b76a0bcd253544c.tar
nixlib-c4ba2e3ef691c349bcce2b1e8b76a0bcd253544c.tar.gz
nixlib-c4ba2e3ef691c349bcce2b1e8b76a0bcd253544c.tar.bz2
nixlib-c4ba2e3ef691c349bcce2b1e8b76a0bcd253544c.tar.lz
nixlib-c4ba2e3ef691c349bcce2b1e8b76a0bcd253544c.tar.xz
nixlib-c4ba2e3ef691c349bcce2b1e8b76a0bcd253544c.tar.zst
nixlib-c4ba2e3ef691c349bcce2b1e8b76a0bcd253544c.zip
cc-wrapper: Remove `stdenv.is*` for `targetPlatform.is*`
Modify bootstrapping stdenvs to make sure `targetPlatform` also passed.
Diffstat (limited to 'pkgs/stdenv/darwin/default.nix')
-rw-r--r--pkgs/stdenv/darwin/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix
index fba5afd4f6ec..1592426b6e39 100644
--- a/pkgs/stdenv/darwin/default.nix
+++ b/pkgs/stdenv/darwin/default.nix
@@ -73,6 +73,7 @@ in rec {
           nativeTools  = true;
           nativePrefix = bootstrapTools;
           nativeLibc   = false;
+          targetPlatform = localSystem;
           libc         = last.pkgs.darwin.Libsystem;
           isClang      = true;
           cc           = { name = "clang-9.9.9"; outPath = bootstrapTools; };
@@ -295,6 +296,7 @@ in rec {
       inherit shell;
       nativeTools = false;
       nativeLibc  = false;
+      targetPlatform = localSystem;
       inherit (pkgs) coreutils binutils gnugrep;
       inherit (pkgs.darwin) dyld;
       cc   = pkgs.llvmPackages.clang-unwrapped;