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. # Disabling optimizations for cg_clif itself makes compilation after a change faster.
opt-level = 0 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 # 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. # execution time of build scripts is so fast that optimizing them slows down the total build time.
[profile.dev.build-override] [profile.dev.build-override]

View File

@ -4,7 +4,7 @@ set -e
# Build cg_clif # Build cg_clif
if [[ "$1" == "--release" ]]; then if [[ "$1" == "--release" ]]; then
export CHANNEL='release' export CHANNEL='release'
CARGO_INCREMENTAL=1 cargo rustc --release -- -Zrun_dsymutil=no cargo rustc --release -- -Zrun_dsymutil=no
else else
export CHANNEL='debug' export CHANNEL='debug'
cargo rustc -- -Zrun_dsymutil=no cargo rustc -- -Zrun_dsymutil=no