Skip to content

Commit 33b6a90

Browse files
committed
Add workaround for rust-lang/rust#74946
Fixes #1072
1 parent 7e203ef commit 33b6a90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_sysroot/build_sysroot.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ rm -r sysroot/ 2>/dev/null || true
1818
export RUSTFLAGS="$RUSTFLAGS -Z force-unstable-if-unmarked"
1919
if [[ "$1" == "--release" ]]; then
2020
sysroot_channel='release'
21-
RUSTFLAGS="$RUSTFLAGS -Zmir-opt-level=2" cargo build --target $TARGET_TRIPLE --release
21+
# FIXME Enable incremental again once rust-lang/rust#74946 is fixed
22+
CARGO_INCREMENTAL=0 RUSTFLAGS="$RUSTFLAGS -Zmir-opt-level=2" cargo build --target $TARGET_TRIPLE --release
2223
else
2324
sysroot_channel='debug'
2425
cargo build --target $TARGET_TRIPLE

0 commit comments

Comments
 (0)