Apply --cfg windows_raw_dylib for bootstrap tools too

This is already applied for rustc/std tools. This is needed to make
`windows` crates avoid trying to depend on a generated
`windows.0.xx.0.lib`.
This commit is contained in:
Jieyou Xu
2025-03-07 19:05:03 +08:00
parent 91a0e1604f
commit ec3cde249f
+1 -1
View File
@@ -597,7 +597,7 @@ fn cargo(
// sysroot. Passing this cfg enables raw-dylib support instead, which makes the native
// library unnecessary. This can be removed when windows-rs enables raw-dylib
// unconditionally.
if let Mode::Rustc | Mode::ToolRustc = mode {
if let Mode::Rustc | Mode::ToolRustc | Mode::ToolBootstrap = mode {
rustflags.arg("--cfg=windows_raw_dylib");
}