diff options
Diffstat (limited to 'pkgs/development/compilers/rustc/hardcode_paths.patch')
-rw-r--r-- | pkgs/development/compilers/rustc/hardcode_paths.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/pkgs/development/compilers/rustc/hardcode_paths.patch b/pkgs/development/compilers/rustc/hardcode_paths.patch deleted file mode 100644 index 77e4c3f3788..00000000000 --- a/pkgs/development/compilers/rustc/hardcode_paths.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs -index 7a3e912..ced75fa 100644 ---- a/src/librustc/back/link.rs -+++ b/src/librustc/back/link.rs -@@ -766,24 +766,15 @@ pub fn output_lib_filename(id: &CrateId) -> String { - - 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() - } -- -- // 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. -- // For win32, there is no cc command, so we add a condition to make it use gcc. -- match sess.targ_cfg.os { -- abi::OsWin32 => "gcc", -- _ => "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() - } - } - |