From 39ce5133c3e4ab5331c963700fc83272b39086c7 Mon Sep 17 00:00:00 2001 From: Daniel Paoliello Date: Mon, 12 May 2025 10:56:44 -0700 Subject: [PATCH] [win] Ignore MSVC linker warning 4217 --- compiler/rustc_target/src/spec/base/msvc.rs | 3 +++ 1 file changed, 3 insertions(+) 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", ], );