mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
Use legacy
mangling instead of v0
.
`v0` mangling mangles generics, but can only handle const generic arguments of simple types. As `Image!` types use const generic enums, things break horribly and compiler panics. `legacy` doesn't even attempt to mangle generics, which is probably fine.
This commit is contained in:
parent
f3888d1bb3
commit
b64eeb6f1e
@ -357,7 +357,7 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
|
||||
};
|
||||
|
||||
let rustflags = format!(
|
||||
"-Z codegen-backend={} -Zsymbol-mangling-version=v0{}{}",
|
||||
"-Z codegen-backend={} -Zsymbol-mangling-version=legacy{}{}",
|
||||
rustc_codegen_spirv.display(),
|
||||
feature_flag,
|
||||
llvm_args,
|
||||
|
Loading…
Reference in New Issue
Block a user