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:
Alex S 2021-05-31 11:47:21 +03:00 committed by Eduard-Mihai Burtescu
parent f3888d1bb3
commit b64eeb6f1e

View File

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