git.iko.soy/typeable/nixpkgs
on master help sign in
rustcMaster: Update from 0.12.0-pre-1166-g0047dbe -> 0.12.0-pre-1336-g394269d

Fixes #5056

commit855241400cf09d7f20c875e693ce7e2f04f272e6 authorRicardo M. Correia <rcorreia@wizy.org> dateFri 21 Nov 2014, 01:43 (12 years ago) parentb7b956f
2 files changed+26−26
pkgs/development/compilers/rustc/hardcode_paths.HEAD.patch+16−16 pkgs/development/compilers/rustc/head.nix+10−10
pkgs/development/compilers/rustc/hardcode_paths.HEAD.patch+16−16
@@ -1,20 +1,5 @@
1−diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs
2−index 81f856c..c2078a5 100644
3−--- a/src/librustc/back/link.rs
4−+++ b/src/librustc/back/link.rs
5−@@ -361,8 +361,8 @@ pub fn mangle_internal_name_by_path_and_seq(path: PathElems, flav: &str) -> Stri
6−
7− pub fn get_cc_prog(sess: &Session) -> String {
8− match sess.opts.cg.linker {
9−- Some(ref linker) => return linker.to_string(),
10−- None => sess.target.target.options.linker.clone(),
11−+ Some(ref linker) => linker.to_string(),
12−+ None => "@ccPath@".to_string(),
13− }
14− }
15−
161diff --git a/src/librustc_back/archive.rs b/src/librustc_back/archive.rs
17−index db2f291..c7a13dc 100644
2+index a88bcaf..9c3858d 100644
183--- a/src/librustc_back/archive.rs
194+++ b/src/librustc_back/archive.rs
205@@ -54,7 +54,7 @@ fn run_ar(handler: &ErrorHandler, maybe_ar_prog: &Option<String>,
@@ -26,3 +11,18 @@ index db2f291..c7a13dc 100644
2611 };
2712 let mut cmd = Command::new(ar);
2813
14+diff --git a/src/librustc_trans/back/link.rs b/src/librustc_trans/back/link.rs
15+index d27a338..c9b1508 100644
16+--- a/src/librustc_trans/back/link.rs
17++++ b/src/librustc_trans/back/link.rs
18+@@ -361,8 +361,8 @@ pub fn mangle_internal_name_by_path_and_seq(path: PathElems, flav: &str) -> Stri
19+
20+ pub fn get_cc_prog(sess: &Session) -> String {
21+ match sess.opts.cg.linker {
22+- Some(ref linker) => return linker.to_string(),
23+- None => sess.target.target.options.linker.clone(),
24++ Some(ref linker) => linker.to_string(),
25++ None => "@ccPath@".to_string(),
26+ }
27+ }
28+
pkgs/development/compilers/rustc/head.nix+10−10
@@ -18,19 +18,19 @@ assert stdenv.gcc.gcc != null;
1818
1919*/
2020
21−with ((import ./common.nix) {inherit stdenv; version = "0.12.0-pre-1166-g0047dbe";});
21+with ((import ./common.nix) {inherit stdenv; version = "0.12.0-pre-1336-g394269d";});
2222
2323let snapshot = if stdenv.system == "i686-linux"
24− then "3f8bb33f86800affca3cb7245925c19b28a94498"
24+ then "999ba4a0dfb70adca628138a7d5f491023621140"
2525 else if stdenv.system == "x86_64-linux"
26− then "e0e13a4312bea0bcc7db35b46bcce957178b18a4"
26+ then "55eaaed3bd6dd5a8d08e99aa4cd618d207f87d8c"
2727 else if stdenv.system == "i686-darwin"
28− then "22f084aaecb773e8348c64fb9ac6d5eba363eb56"
28+ then "0581dff21a238343602ec0202a551bac93d21300"
2929 else if stdenv.system == "x86_64-darwin"
30− then "c8554badab19cee96fbf51c2b98ee1bba87caa5c"
30+ then "aad290cf3f8ac4aa0661984a9799c78161ea5a72"
3131 else abort "no-snapshot for platform ${stdenv.system}";
32− snapshotDate = "2014-11-10";
33− snapshotRev = "f89e975";
32+ snapshotDate = "2014-11-18";
33+ snapshotRev = "9c96a79";
3434 snapshotName = "rust-stage0-${snapshotDate}-${snapshotRev}-${platform}-${snapshot}.tar.bz2";
3535
3636in stdenv.mkDerivation {
@@ -40,8 +40,8 @@ in stdenv.mkDerivation {
4040
4141 src = fetchgit {
4242 url = https://github.com/rust-lang/rust;
43− rev = "0047dbe59c41b951d34ce6324f3a8c0e15d523e9";
44− sha256 = "1w22w5rfpw0kcmnrrmrxslsxyl4xhyckcxgwmv3hbir05qxsxm6m";
43+ rev = "394269d16e3752a23ffa273e68f8aaefd2a510c4";
44+ sha256 = "0zkz5f4gba4glhrf9f7v42qxk638q9ahgf6m0bjh8b7c3x52cv71";
4545 };
4646
4747 # We need rust to build rust. If we don't provide it, configure will try to download it.
@@ -69,7 +69,7 @@ in stdenv.mkDerivation {
6969 ++ stdenv.lib.optional stdenv.needsPax ./grsec.HEAD.patch;
7070
7171 postPatch = ''
72− substituteInPlace src/librustc/back/link.rs \
72+ substituteInPlace src/librustc_trans/back/link.rs \
7373 --subst-var-by "ccPath" "${stdenv.gcc}/bin/cc"
7474 substituteInPlace src/librustc_back/archive.rs \
7575 --subst-var-by "arPath" "${stdenv.gcc.binutils}/bin/ar"