mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
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:
parent
91a0e1604f
commit
ec3cde249f
@ -597,7 +597,7 @@ impl Builder<'_> {
|
||||
// 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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user