mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 06:45:13 +00:00
Add compile error when both use-compiled-tools and use-installed-tools are enabled (#269)
* Add compile error when both use-compiled-tools and use-installed-tools are enabled The compile error is located in the build.rs for rustc-codegen-spirv so that the error happens early, rather than after compiling spirv-tools. * lint * lint
This commit is contained in:
parent
28f604eb77
commit
3888fbe51f
8
crates/rustc_codegen_spirv/build.rs
Normal file
8
crates/rustc_codegen_spirv/build.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// Putting this check here causes compilation failure seconds into the build,
|
||||
// putting it in lib.rs fails after minutes because spirv-tools gets compiled first.
|
||||
#[cfg(all(feature = "use-compiled-tools", feature = "use-installed-tools"))]
|
||||
compile_error!(
|
||||
"Either \"use-compiled-tools\" (enabled by default) or \"use-installed-tools\" may be enabled."
|
||||
);
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user