Skip to content

Commit 45225d2

Browse files
committed
Windows mingw targets use gcc as the linker so the target spec should also indicate linker_is_gnu.
1 parent 3fe1d7f commit 45225d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_target/src/spec/windows_gnu_base.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub fn opts() -> TargetOptions {
6666
// FIXME(#13846) this should be enabled for windows
6767
function_sections: false,
6868
linker: Some("gcc".to_string()),
69+
linker_is_gnu: true,
6970
dynamic_linking: true,
7071
executables: true,
7172
dll_prefix: String::new(),

0 commit comments

Comments
 (0)