2014-09-24 00:22:30 +02:00
|
|
|
diff --git a/src/librustc_back/archive.rs b/src/librustc_back/archive.rs
|
2014-11-21 01:43:40 +01:00
|
|
|
index a88bcaf..9c3858d 100644
|
2014-09-24 00:22:30 +02:00
|
|
|
--- a/src/librustc_back/archive.rs
|
|
|
|
+++ b/src/librustc_back/archive.rs
|
2014-11-06 01:54:44 +01:00
|
|
|
@@ -54,7 +54,7 @@ fn run_ar(handler: &ErrorHandler, maybe_ar_prog: &Option<String>,
|
2014-09-24 00:22:30 +02:00
|
|
|
paths: &[&Path]) -> ProcessOutput {
|
|
|
|
let ar = match *maybe_ar_prog {
|
|
|
|
Some(ref ar) => ar.as_slice(),
|
|
|
|
- None => "ar"
|
|
|
|
+ None => "@arPath@"
|
|
|
|
};
|
|
|
|
let mut cmd = Command::new(ar);
|
2014-11-06 01:54:44 +01:00
|
|
|
|
2014-11-21 01:43:40 +01:00
|
|
|
diff --git a/src/librustc_trans/back/link.rs b/src/librustc_trans/back/link.rs
|
|
|
|
index d27a338..c9b1508 100644
|
|
|
|
--- a/src/librustc_trans/back/link.rs
|
|
|
|
+++ b/src/librustc_trans/back/link.rs
|
|
|
|
@@ -361,8 +361,8 @@ pub fn mangle_internal_name_by_path_and_seq(path: PathElems, flav: &str) -> Stri
|
|
|
|
|
|
|
|
pub fn get_cc_prog(sess: &Session) -> String {
|
|
|
|
match sess.opts.cg.linker {
|
|
|
|
- Some(ref linker) => return linker.to_string(),
|
|
|
|
- None => sess.target.target.options.linker.clone(),
|
|
|
|
+ Some(ref linker) => linker.to_string(),
|
|
|
|
+ None => "@ccPath@".to_string(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|