File tree 1 file changed +5
-5
lines changed
compiler/rustc_codegen_ssa/src/back
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1213,16 +1213,16 @@ fn add_sanitizer_libraries(
1213
1213
return ;
1214
1214
}
1215
1215
1216
- // On macOS the runtimes are distributed as dylibs which should be linked to
1217
- // both executables and dynamic shared objects. On most other platforms the
1218
- // runtimes are currently distributed as static libraries which should be
1219
- // linked to executables only.
1220
1216
if matches ! ( crate_type, CrateType :: Rlib | CrateType :: Staticlib ) {
1221
1217
return ;
1222
1218
}
1223
1219
1220
+ // On macOS and Windows using MSVC the runtimes are distributed as dylibs
1221
+ // which should be linked to both executables and dynamic libraries.
1222
+ // Everywhere else the runtimes are currently distributed as static
1223
+ // libraries which should be linked to executables only.
1224
1224
if matches ! ( crate_type, CrateType :: Dylib | CrateType :: Cdylib | CrateType :: ProcMacro )
1225
- && ( sess. target . is_like_osx || sess. target . is_like_msvc )
1225
+ && ! ( sess. target . is_like_osx || sess. target . is_like_msvc )
1226
1226
{
1227
1227
return ;
1228
1228
}
You can’t perform that action at this time.
0 commit comments