about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/back
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2018-08-19 09:39:19 +0200
committerJorge Aparicio <jorge@japaric.io>2018-08-19 09:39:19 +0200
commitc8ef8b6602732e5448cfd0d9d05c955aa1815aed (patch)
tree5dc4dacfb42f0ace0b0f12a182125e71498ea24b /src/librustc_codegen_llvm/back
parent4bbedd7dd21f3bb01ec144035918fb29942b9b7d (diff)
downloadrust-c8ef8b6602732e5448cfd0d9d05c955aa1815aed.tar.gz
rust-c8ef8b6602732e5448cfd0d9d05c955aa1815aed.zip
LinkerFlavor::Gcc defaults to cc, not gcc
Diffstat (limited to 'src/librustc_codegen_llvm/back')
-rw-r--r--src/librustc_codegen_llvm/back/link.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/back/link.rs b/src/librustc_codegen_llvm/back/link.rs
index f29b4d95b28..227ae22e693 100644
--- a/src/librustc_codegen_llvm/back/link.rs
+++ b/src/librustc_codegen_llvm/back/link.rs
@@ -606,7 +606,7 @@ pub fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
             // only the linker flavor is known; use the default linker for the selected flavor
             (None, Some(flavor)) => Some((PathBuf::from(match flavor {
                 LinkerFlavor::Em  => if cfg!(windows) { "emcc.bat" } else { "emcc" },
-                LinkerFlavor::Gcc => "gcc",
+                LinkerFlavor::Gcc => "cc",
                 LinkerFlavor::Ld => "ld",
                 LinkerFlavor::Msvc => "link.exe",
                 LinkerFlavor::Lld(_) => "lld",