Enable incr comp for release mode in Cargo.toml

This commit is contained in:
bjorn3 2020-09-29 13:17:01 +02:00
parent 3ece9fa92a
commit bcb0862703
2 changed files with 4 additions and 1 deletions

View File

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

View File

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