git.iko.soy/typeable/nixpkgs
on master help sign in
rustc: 1.3.0 -> 1.4.0
commit3406cdd0ce2cc68f5c840380f869b99854dd0f67 authorWilliam A. Kennington III <william@wkennington.com> dateFri 30 Oct 2015, 19:40 (11 years ago) parentea49c91
2 files changed+10−66
pkgs/development/compilers/rustc/default.nix+10−9 pkgs/development/compilers/rustc/patches/cc-ar-opts.patch−57
pkgs/development/compilers/rustc/default.nix+10−9
@@ -1,10 +1,11 @@
11{ stdenv, callPackage }:
22
33callPackage ./generic.nix {
4− shortVersion = "1.3.0";
4+ shortVersion = "1.4.0";
55 isRelease = true;
6+ forceBundledLLVM = false;
67 configureFlags = [ "--release-channel=stable" ];
7− srcSha = "14lhk40n9aslz8h8wj7fas5vsgyrb38b2r319q3hlvplgggdksg8";
8+ srcSha = "13wpi9nb3h6wwck2mxhza85fahzcwgas00w8m25086v34dha4dp1";
89
910 /* Rust is bootstrapped from an earlier built version. We need
1011 to fetch these earlier versions, which vary per platform.
@@ -14,14 +15,14 @@ callPackage ./generic.nix {
1415 for the tagged release and not a snapshot in the current HEAD.
1516 */
1617
17− snapshotHashLinux686 = "3459275cdf3896f678e225843fa56f0d9fdbabe8";
18− snapshotHashLinux64 = "e451e3bd6e5fcef71e41ae6f3da9fb1cf0e13a0c";
19− snapshotHashDarwin686 = "428944a7984c0988e77909d82ca2ef77d96a1fbd";
20− snapshotHashDarwin64 = "b0515bb7d2892b9a58282fc865fee11a885406d6";
21− snapshotDate = "2015-07-26";
22− snapshotRev = "a5c12f4";
18+ snapshotHashLinux686 = "e2553bf399cd134a08ef3511a0a6ab0d7a667216";
19+ snapshotHashLinux64 = "7df8ba9dec63ec77b857066109d4b6250f3d222f";
20+ snapshotHashDarwin686 = "29750870c82a0347f8b8b735a4e2e0da26f5098d";
21+ snapshotHashDarwin64 = "c9f2c588238b4c6998190c3abeb33fd6164099a2";
22+ snapshotDate = "2015-08-11";
23+ snapshotRev = "1af31d4";
2324
2425 # cc-ar-opts.patch should be removable in 1.4.0+
25− patches = [ ./patches/remove-uneeded-git.patch ./patches/cc-ar-opts.patch ]
26+ patches = [ ./patches/remove-uneeded-git.patch ]
2627 ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
2728}
pkgs/development/compilers/rustc/patches/cc-ar-opts.patchdeleted−57
@@ -1,57 +0,0 @@
1−From c97759699264c6b1fa0e88420cd3c720df25e594 Mon Sep 17 00:00:00 2001
2−From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
3−Date: Tue, 11 Aug 2015 01:09:21 +0200
4−Subject: [PATCH] rustc_back: add configure options for default linker and ar
5−
6−Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
7−---
8− configure | 4 ++++
9− mk/target.mk | 4 ++++
10− src/librustc_back/target/mod.rs | 4 ++--
11− 3 files changed, 10 insertions(+), 2 deletions(-)
12−
13−diff --git a/configure b/configure
14−index 071788c..dc9d7d7 100755
15−--- a/configure
16−+++ b/configure
17−@@ -607,6 +607,10 @@ valopt aarch64-linux-android-ndk "" "aarch64-linux-android NDK standalone path"
18− valopt release-channel "dev" "the name of the release channel to build"
19− valopt musl-root "/usr/local" "MUSL root installation directory"
20−
21−+# Used on systems where "cc" and "ar" are unavailable
22−+valopt default-linker "cc" "the default linker"
23−+valopt default-ar "ar" "the default ar"
24−+
25− # Many of these are saved below during the "writing configuration" step
26− # (others are conditionally saved).
27− opt_nosave manage-submodules 1 "let the build manage the git submodules"
28−diff --git a/mk/target.mk b/mk/target.mk
29−index aae66c4..408ab96 100644
30−--- a/mk/target.mk
31−+++ b/mk/target.mk
32−@@ -13,6 +13,10 @@
33− # this exists can be found on issue #2400
34− export CFG_COMPILER_HOST_TRIPLE
35−
36−+# Used as defaults for the runtime ar and cc tools
37−+export CFG_DEFAULT_LINKER
38−+export CFG_DEFAULT_AR
39−+
40− # The standard libraries should be held up to a higher standard than any old
41− # code, make sure that these common warnings are denied by default. These can
42− # be overridden during development temporarily. For stage0, we allow warnings
43−diff --git a/src/librustc_back/target/mod.rs b/src/librustc_back/target/mod.rs
44−index d9cfdaa..542791a 100644
45−--- a/src/librustc_back/target/mod.rs
46−+++ b/src/librustc_back/target/mod.rs
47−@@ -185,8 +185,8 @@ impl Default for TargetOptions {
48− fn default() -> TargetOptions {
49− TargetOptions {
50− data_layout: String::new(),
51−- linker: "cc".to_string(),
52−- ar: "ar".to_string(),
53−+ linker: option_env!("CFG_DEFAULT_LINKER").unwrap_or("cc").to_string(),
54−+ ar: option_env!("CFG_DEFAULT_AR").unwrap_or("ar").to_string(),
55− pre_link_args: Vec::new(),
56− post_link_args: Vec::new(),
57− cpu: "generic".to_string(),