diff --git a/compiler/rustc_target/src/spec/base/msvc.rs b/compiler/rustc_target/src/spec/base/msvc.rs index bd59678d23665..3d06d8e96b3a9 100644 --- a/compiler/rustc_target/src/spec/base/msvc.rs +++ b/compiler/rustc_target/src/spec/base/msvc.rs @@ -16,6 +16,9 @@ pub(crate) fn opts() -> TargetOptions { // is generated by the compiler, but marked as a foreign item (hence the dllimport) in // the standard library. "/IGNORE:4286", + // "Symbol was defined in one obj, but imported by another" + // Same issue and root cause as 4286. + "/IGNORE:4217", ], );