about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2025-03-07 19:05:03 +0800
committerJieyou Xu <jieyouxu@outlook.com>2025-03-07 19:07:27 +0800
commitec3cde249f5b5a8406dcdf6b8abc702e86e6e56b (patch)
treeaf1363b074b03b8bb276ddf41eb0f3e936191902 /src
parent91a0e1604f343730022bc903cbf201d8b0a86a71 (diff)
downloadrust-ec3cde249f5b5a8406dcdf6b8abc702e86e6e56b.tar.gz
rust-ec3cde249f5b5a8406dcdf6b8abc702e86e6e56b.zip
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`.
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/src/core/builder/cargo.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/builder/cargo.rs b/src/bootstrap/src/core/builder/cargo.rs
index d1d52d82eaa..12dd40d14e9 100644
--- a/src/bootstrap/src/core/builder/cargo.rs
+++ b/src/bootstrap/src/core/builder/cargo.rs
@@ -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");
         }