Skip to content

Commit

Permalink
Windows mingw targets use gcc as the linker so the target spec should…
Browse files Browse the repository at this point in the history
… also indicate linker_is_gnu.
  • Loading branch information
luqmana committed May 16, 2021
1 parent 3fe1d7f commit 45225d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_target/src/spec/windows_gnu_base.rs
Expand Up @@ -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(),
Expand Down

0 comments on commit 45225d2

Please sign in to comment.