Skip to content

Commit

Permalink
darwin-stdenv: Don't use nativeTools
Browse files Browse the repository at this point in the history
Now, we'll actually use the wrapped ld to link

(cherry picked from commit 3b6e7fe)
  • Loading branch information
Ericson2314 committed Sep 3, 2017
1 parent 9be4014 commit 2a91d41
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/stdenv/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,17 @@ in rec {
inherit shell;
inherit (last) stdenv;

nativeTools = true;
nativePrefix = bootstrapTools;
nativeTools = false;
nativeLibc = false;
buildPackages = lib.optionalAttrs (last ? stdenv) {
inherit (last) stdenv;
};
libc = last.pkgs.darwin.Libsystem;
isClang = true;
cc = { name = "clang-9.9.9"; outPath = bootstrapTools; };
cc = { name = "clang-9.9.9"; outPath = bootstrapTools; };
binutils = { name = "binutils-9.9.9"; outPath = bootstrapTools; };
coreutils = { name = "coreutils-9.9.9"; outPath = bootstrapTools; };
gnugrep = { name = "gnugrep-9.9.9"; outPath = bootstrapTools; };
};

preHook = stage0.stdenv.lib.optionalString (shell == "${bootstrapTools}/bin/bash") ''
Expand Down

0 comments on commit 2a91d41

Please sign in to comment.