Enable incr comp for release mode in Cargo.toml
This commit is contained in:
parent
3ece9fa92a
commit
bcb0862703
@ -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]
|
||||||
|
2
test.sh
2
test.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user