diff --git a/Cargo.toml b/Cargo.toml index d57556ef191..86cc6c45019 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,6 +46,9 @@ opt-level = 3 # Disabling optimizations for cg_clif itself makes compilation after a change faster. opt-level = 0 +[profile.release.package.rustc_codegen_cranelift] +incremental = true + # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the # execution time of build scripts is so fast that optimizing them slows down the total build time. [profile.dev.build-override] diff --git a/test.sh b/test.sh index ef50a4fc729..3028f5955ed 100755 --- a/test.sh +++ b/test.sh @@ -4,7 +4,7 @@ set -e # Build cg_clif if [[ "$1" == "--release" ]]; then export CHANNEL='release' - CARGO_INCREMENTAL=1 cargo rustc --release -- -Zrun_dsymutil=no + cargo rustc --release -- -Zrun_dsymutil=no else export CHANNEL='debug' cargo rustc -- -Zrun_dsymutil=no