Merge pull request #24418 from LnL7/darwin-rust

rustc: use llvm_39
This commit is contained in:
Daniel Peebles 2017-03-28 20:34:07 -04:00 committed by GitHub
commit 903fc1d6c9
2 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,8 @@
{ stdenv, callPackage, recurseIntoAttrs, makeRustPlatform,
targets ? [], targetToolchains ? [], targetPatches ? [] }:
{ stdenv, callPackage, recurseIntoAttrs, makeRustPlatform, llvm
, targets ? []
, targetToolchains ? []
, targetPatches ? []
}:
let
rustPlatform = recurseIntoAttrs (makeRustPlatform (callPackage ./bootstrap.nix {}));
@ -17,6 +20,7 @@ rec {
./patches/darwin-disable-fragile-tcp-tests.patch
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
inherit llvm;
inherit targets;
inherit targetPatches;
inherit targetToolchains;

View file

@ -5542,7 +5542,9 @@ with pkgs;
};
rust = rustStable;
rustStable = callPackage ../development/compilers/rust {};
rustStable = callPackage ../development/compilers/rust {
inherit (llvmPackages_39) llvm;
};
rustBeta = lowPrio (recurseIntoAttrs (callPackage ../development/compilers/rust/beta.nix {}));
rustNightly = lowPrio (recurseIntoAttrs (callPackage ../development/compilers/rust/nightly.nix {
rustPlatform = recurseIntoAttrs (makeRustPlatform rustBeta);