Skip to content

Commit 83f37b0

Browse files
committed
Updated build script
1 parent 9e31431 commit 83f37b0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

crates/rustc_codegen_spirv/build.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use std::{env, fs, mem};
1818
/// `cargo publish`. We need to figure out a way to do this properly, but let's hardcode it for now :/
1919
//const REQUIRED_RUST_TOOLCHAIN: &str = include_str!("../../rust-toolchain.toml");
2020
const REQUIRED_RUST_TOOLCHAIN: &str = r#"[toolchain]
21-
channel = "nightly-2025-08-04"
21+
channel = "nightly-2025-11-02"
2222
components = ["rust-src", "rustc-dev", "llvm-tools"]
23-
# commit_hash = f34ba774c78ea32b7c40598b8ad23e75cdac42a6"#;
23+
# commit_hash = bd3ac0330018c23b111bbee176f32c377be7b319"#;
2424

2525
fn rustc_output(arg: &str) -> Result<String, Box<dyn Error>> {
2626
let rustc = env::var("RUSTC").unwrap_or_else(|_| "rustc".into());
@@ -197,6 +197,13 @@ mod win {",
197197
for link_path in raw_dylib::",
198198
);
199199
}
200+
src = src.replace(
201+
"
202+
for (link_path, as_needed) in raw_dylib::",
203+
"
204+
#[cfg(any())]
205+
for (link_path, as_needed) in raw_dylib::",
206+
);
200207
if relative_path == Path::new("src/back/metadata.rs") {
201208
// HACK(eddyb) remove `object` dependency.
202209
src = src.replace(

0 commit comments

Comments
 (0)