Skip to content

Commit bcb0862

Browse files
committed
Enable incr comp for release mode in Cargo.toml
1 parent 3ece9fa commit bcb0862

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ opt-level = 3
4646
# Disabling optimizations for cg_clif itself makes compilation after a change faster.
4747
opt-level = 0
4848

49+
[profile.release.package.rustc_codegen_cranelift]
50+
incremental = true
51+
4952
# Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
5053
# execution time of build scripts is so fast that optimizing them slows down the total build time.
5154
[profile.dev.build-override]

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
# Build cg_clif
55
if [[ "$1" == "--release" ]]; then
66
export CHANNEL='release'
7-
CARGO_INCREMENTAL=1 cargo rustc --release -- -Zrun_dsymutil=no
7+
cargo rustc --release -- -Zrun_dsymutil=no
88
else
99
export CHANNEL='debug'
1010
cargo rustc -- -Zrun_dsymutil=no

0 commit comments

Comments
 (0)