Add workaround for rust-lang/rust#74946

Fixes #1072
This commit is contained in:
bjorn3 2020-08-19 13:51:49 +02:00
parent 7e203efce8
commit 33b6a9081a
1 changed files with 2 additions and 1 deletions

View File

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