2014-01-20 16:05:29 +00:00
|
|
|
diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs
|
2014-07-02 20:43:34 +01:00
|
|
|
index 7a3e912..ced75fa 100644
|
2014-01-20 16:05:29 +00:00
|
|
|
--- a/src/librustc/back/link.rs
|
|
|
|
+++ b/src/librustc/back/link.rs
|
2014-09-16 12:51:57 +01:00
|
|
|
@@ -766,24 +766,15 @@ pub fn output_lib_filename(id: &CrateId) -> String {
|
2014-01-20 16:05:29 +00:00
|
|
|
|
2014-07-02 20:43:34 +01:00
|
|
|
pub fn get_cc_prog(sess: &Session) -> String {
|
|
|
|
match sess.opts.cg.linker {
|
|
|
|
- Some(ref linker) => return linker.to_string(),
|
|
|
|
- None => {}
|
|
|
|
+ Some(ref linker) => linker.to_string(),
|
|
|
|
+ None => "@ccPath@".to_string()
|
2014-01-20 16:05:29 +00:00
|
|
|
}
|
2014-04-25 21:40:51 +01:00
|
|
|
-
|
2014-07-02 20:43:34 +01:00
|
|
|
- // In the future, FreeBSD will use clang as default compiler.
|
|
|
|
- // It would be flexible to use cc (system's default C compiler)
|
|
|
|
- // instead of hard-coded gcc.
|
2014-09-16 12:51:57 +01:00
|
|
|
- // For win32, there is no cc command, so we add a condition to make it use gcc.
|
2014-01-20 16:05:29 +00:00
|
|
|
- match sess.targ_cfg.os {
|
2014-09-16 12:51:57 +01:00
|
|
|
- abi::OsWin32 => "gcc",
|
2014-07-02 20:43:34 +01:00
|
|
|
- _ => "cc",
|
|
|
|
- }.to_string()
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn get_ar_prog(sess: &Session) -> String {
|
|
|
|
match sess.opts.cg.ar {
|
|
|
|
Some(ref ar) => (*ar).clone(),
|
|
|
|
- None => "ar".to_string()
|
|
|
|
+ None => "@arPath@".to_string()
|
|
|
|
}
|
2014-04-25 21:40:51 +01:00
|
|
|
}
|
2014-01-20 16:05:29 +00:00
|
|
|
|