]> git.lizzy.rs Git - rust.git/commitdiff
LinkerFlavor::Gcc defaults to cc, not gcc
authorJorge Aparicio <jorge@japaric.io>
Sun, 19 Aug 2018 07:39:19 +0000 (09:39 +0200)
committerJorge Aparicio <jorge@japaric.io>
Sun, 19 Aug 2018 07:39:19 +0000 (09:39 +0200)
src/librustc_codegen_llvm/back/link.rs

index f29b4d95b28fad7a1eb57ecbb6d7344f4637d62b..227ae22e6935991e38caca52cf8873e7c5d382ff 100644 (file)
@@ -606,7 +606,7 @@ fn infer_from(
             // 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",