Add codegen backend dylib back into depinfo (.d) post-rust-lang/rust#93969.

This commit is contained in:
Eduard-Mihai Burtescu 2022-10-14 16:12:07 +03:00 committed by Eduard-Mihai Burtescu
parent 6dc23afaf8
commit 4b10bf5db1
2 changed files with 8 additions and 0 deletions

View File

@ -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(),
];

View File

@ -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",