diff options
| author | Jieyou Xu <jieyouxu@outlook.com> | 2025-03-07 19:05:03 +0800 |
|---|---|---|
| committer | Jieyou Xu <jieyouxu@outlook.com> | 2025-03-07 19:07:27 +0800 |
| commit | ec3cde249f5b5a8406dcdf6b8abc702e86e6e56b (patch) | |
| tree | af1363b074b03b8bb276ddf41eb0f3e936191902 /src | |
| parent | 91a0e1604f343730022bc903cbf201d8b0a86a71 (diff) | |
| download | rust-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.rs | 2 |
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"); } |
