File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1172,6 +1172,11 @@ impl Build {
1172
1172
atlmfc_lib. display( )
1173
1173
) ) ;
1174
1174
}
1175
+
1176
+ if compiler. family == ToolFamily :: Clang {
1177
+ // Mirror what clang does at link stage
1178
+ self . print ( & format_args ! ( "cargo:rustc-link-arg=-defaultib:oldnames" ) ) ;
1179
+ }
1175
1180
}
1176
1181
1177
1182
if self . link_lib_modifiers . is_empty ( ) {
@@ -1758,13 +1763,6 @@ impl Build {
1758
1763
cmd. push_opt_unless_duplicate ( format ! ( "-O{}" , opt_level) . into ( ) ) ;
1759
1764
}
1760
1765
1761
- if cmd. family == ToolFamily :: Clang && target. contains ( "windows" ) {
1762
- // Disambiguate mingw and msvc on Windows. Problem is that
1763
- // depending on the origin clang can default to a mismatchig
1764
- // run-time.
1765
- cmd. push_cc_arg ( format ! ( "--target={}" , target) . into ( ) ) ;
1766
- }
1767
-
1768
1766
if cmd. family == ToolFamily :: Clang && target. contains ( "android" ) {
1769
1767
// For compatibility with code that doesn't use pre-defined `__ANDROID__` macro.
1770
1768
// If compiler used via ndk-build or cmake (officially supported build methods)
You can’t perform that action at this time.
0 commit comments