Skip to content

Commit 9a9ebc1

Browse files
committed
compile_codegen: add warning in build.rs about cargo gpu parsing
1 parent 744c844 commit 9a9ebc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/rustc_codegen_spirv/build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ use std::process::{Command, ExitCode};
1111
use std::{env, fs, mem};
1212

1313
/// Current `rust-toolchain.toml` file
14+
/// WARNING!!! cargo-gpu is new relying on this being a string literal! It will
15+
/// scan `build.rs` for any line starting with `channel = "..."` to figure out
16+
/// which toolchain version to use! This also allows backwards compat.
1417
/// Unfortunately, directly including the actual workspace `rust-toolchain.toml` doesn't work together with
1518
/// `cargo publish`. We need to figure out a way to do this properly, but let's hardcode it for now :/
1619
//const REQUIRED_RUST_TOOLCHAIN: &str = include_str!("../../rust-toolchain.toml");

0 commit comments

Comments
 (0)