mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
Add codegen backend dylib back into depinfo (.d) post-rust-lang/rust#93969.
This commit is contained in:
parent
6dc23afaf8
commit
4b10bf5db1
@ -419,6 +419,10 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
|
||||
|
||||
let mut rustflags = vec![
|
||||
format!("-Zcodegen-backend={}", rustc_codegen_spirv.display()),
|
||||
// Ensure the codegen backend is emitted in `.d` files to force Cargo
|
||||
// to rebuild crates compiled with it when it changes (this used to be
|
||||
// the default until https://github.com/rust-lang/rust/pull/93969).
|
||||
"-Zbinary-dep-depinfo".to_string(),
|
||||
"-Csymbol-mangling-version=v0".to_string(),
|
||||
];
|
||||
|
||||
|
@ -323,6 +323,10 @@ fn rust_flags(codegen_backend_path: &Path) -> String {
|
||||
|
||||
[
|
||||
&*format!("-Zcodegen-backend={}", codegen_backend_path.display()),
|
||||
// Ensure the codegen backend is emitted in `.d` files to force Cargo
|
||||
// to rebuild crates compiled with it when it changes (this used to be
|
||||
// the default until https://github.com/rust-lang/rust/pull/93969).
|
||||
"-Zbinary-dep-depinfo",
|
||||
"-Coverflow-checks=off",
|
||||
"-Cdebug-assertions=off",
|
||||
"-Cdebuginfo=2",
|
||||
|
Loading…
Reference in New Issue
Block a user