Windows mingw targets use gcc as the linker so the target spec should also indicate linker_is_gnu.

This commit is contained in:
Luqman Aden 2021-05-15 22:09:34 -07:00
parent 3fe1d7f789
commit 45225d24bf

View File

@ -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(),