about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorLuqman Aden <me@luqman.ca>2021-05-15 22:09:34 -0700
committerLuqman Aden <me@luqman.ca>2021-05-15 22:09:34 -0700
commit45225d24bff4bec2eec55f89695876454daa23e2 (patch)
tree49d308d3c70b22ae1095f0e74b02b6b469b56fd0 /compiler
parent3fe1d7f78913231cdb7a8748149f7b2e67b814bd (diff)
downloadrust-45225d24bff4bec2eec55f89695876454daa23e2.tar.gz
rust-45225d24bff4bec2eec55f89695876454daa23e2.zip
Windows mingw targets use gcc as the linker so the target spec should also indicate linker_is_gnu.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_target/src/spec/windows_gnu_base.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/windows_gnu_base.rs b/compiler/rustc_target/src/spec/windows_gnu_base.rs
index 35a52896f6f..5808391ee06 100644
--- a/compiler/rustc_target/src/spec/windows_gnu_base.rs
+++ b/compiler/rustc_target/src/spec/windows_gnu_base.rs
@@ -66,6 +66,7 @@ pub fn opts() -> TargetOptions {
         // FIXME(#13846) this should be enabled for windows
         function_sections: false,
         linker: Some("gcc".to_string()),
+        linker_is_gnu: true,
         dynamic_linking: true,
         executables: true,
         dll_prefix: String::new(),