Skip to content

Commit

Permalink
Re-enable mir inlining for the sysroot
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Jan 30, 2021
1 parent 7657ebc commit 84f24e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build_sysroot/build_sysroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export __CARGO_DEFAULT_LIB_METADATA="cg_clif"
if [[ "$1" != "--debug" ]]; then
sysroot_channel='release'
# FIXME Enable incremental again once rust-lang/rust#74946 is fixed
# FIXME Enable -Zmir-opt-level=2 again once it doesn't ice anymore
CARGO_INCREMENTAL=0 RUSTFLAGS="$RUSTFLAGS" cargo build --target "$TARGET_TRIPLE" --release
CARGO_INCREMENTAL=0 RUSTFLAGS="$RUSTFLAGS -Zmir-opt-level=2" cargo build --target "$TARGET_TRIPLE" --release
else
sysroot_channel='debug'
cargo build --target "$TARGET_TRIPLE"
Expand Down

0 comments on commit 84f24e5

Please sign in to comment.