@@ -1,8 +1,8 @@
11diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs
2−index 7a3e912..ced75fa 100644
2+index 1cc60fc..2e94b99 100644
33--- a/src/librustc/back/link.rs
44+++ b/src/librustc/back/link.rs
5−@@ -766,24 +766,15 @@ pub fn output_lib_filename(id: &CrateId) -> String {
5+@@ -383,18 +383,9 @@ pub fn mangle_internal_name_by_path_and_seq(path: PathElems, flav: &str) -> Stri
66
77 pub fn get_cc_prog(sess: &Session) -> String {
88 match sess.opts.cg.linker {
@@ -15,18 +15,23 @@ index 7a3e912..ced75fa 100644
1515- // In the future, FreeBSD will use clang as default compiler.
1616- // It would be flexible to use cc (system's default C compiler)
1717- // instead of hard-coded gcc.
18−- // For win32, there is no cc command, so we add a condition to make it use gcc.
18+- // For Windows, there is no cc command, so we add a condition to make it use gcc.
1919- match sess.targ_cfg.os {
20−- abi::OsWin32 => "gcc",
20+- abi::OsWindows => "gcc",
2121- _ => "cc",
2222- }.to_string()
2323 }
2424
25− pub fn get_ar_prog(sess: &Session) -> String {
26− match sess.opts.cg.ar {
27− Some(ref ar) => (*ar).clone(),
28−- None => "ar".to_string()
29−+ None => "@arPath@".to_string()
30− }
31− }
32−
25+ pub fn remove(sess: &Session, path: &Path) {
26+diff --git a/src/librustc_back/archive.rs b/src/librustc_back/archive.rs
27+index 060dda5..fecf76b 100644
28+--- a/src/librustc_back/archive.rs
29++++ b/src/librustc_back/archive.rs
30+@@ -53,7 +53,7 @@ fn run_ar(handler: &ErrorHandler, maybe_ar_prog: &Option<String>,
31+ paths: &[&Path]) -> ProcessOutput {
32+ let ar = match *maybe_ar_prog {
33+ Some(ref ar) => ar.as_slice(),
34+- None => "ar"
35++ None => "@arPath@"
36+ };
37+ let mut cmd = Command::new(ar);