Skip to content

Commit ec3cde2

Browse files
committed
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`.
1 parent 91a0e16 commit ec3cde2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/builder/cargo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ impl Builder<'_> {
597597
// sysroot. Passing this cfg enables raw-dylib support instead, which makes the native
598598
// library unnecessary. This can be removed when windows-rs enables raw-dylib
599599
// unconditionally.
600-
if let Mode::Rustc | Mode::ToolRustc = mode {
600+
if let Mode::Rustc | Mode::ToolRustc | Mode::ToolBootstrap = mode {
601601
rustflags.arg("--cfg=windows_raw_dylib");
602602
}
603603

0 commit comments

Comments
 (0)