-C codegen-units isn't needed anymore

This commit is contained in:
khyperia 2020-09-28 13:48:33 +02:00
parent c77224cecb
commit df3da15f0b
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
setlocal
cargo build
set RUSTFLAGS=-Zcodegen-backend=%cd%/../target/debug/rustc_codegen_spirv.dll -Ccodegen-units=1
set RUSTFLAGS=-Zcodegen-backend=%cd%/../target/debug/rustc_codegen_spirv.dll
pushd build_libcore_test
cargo build -Z build-std=core --target spirv-unknown-unknown --release

View File

@ -6,7 +6,7 @@ set -e
# build rustc_codegen_spirv
cargo build
export RUSTFLAGS="-Zcodegen-backend=$PWD/../target/debug/librustc_codegen_spirv.so -Ccodegen-units=1"
export RUSTFLAGS="-Zcodegen-backend=$PWD/../target/debug/librustc_codegen_spirv.so"
pushd build_libcore_test
cargo build -Z build-std=core --target spirv-unknown-unknown --release

View File

@ -12,7 +12,7 @@ pub fn build_libcore_test() {
}
}
let rustflags = format!(
"-Z codegen-backend=librustc_codegen_spirv{} -C codegen-units=1",
"-Z codegen-backend=librustc_codegen_spirv{}",
std::env::consts::DLL_SUFFIX
);
let build = Command::new("cargo")