Skip to content

Commit 1ea618a

Browse files
committed
Make it easier to use build_sysroot.sh
1 parent cb36760 commit 1ea618a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build_sysroot/build_sysroot.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
set -e
66
cd $(dirname "$0")
77

8+
if [ -z $CHANNEL ]; then
9+
export CHANNEL='release'
10+
fi
11+
812
pushd ../ >/dev/null
913
source ./scripts/config.sh
1014
popd >/dev/null
@@ -24,7 +28,7 @@ export RUSTFLAGS=$RUSTFLAGS" --clif"
2428

2529
# Build libs
2630
export RUSTFLAGS="$RUSTFLAGS -Zforce-unstable-if-unmarked -Cpanic=abort"
27-
if [[ "$1" == "--release" ]]; then
31+
if [[ "$1" != "--debug" ]]; then
2832
sysroot_channel='release'
2933
# FIXME Enable incremental again once rust-lang/rust#74946 is fixed
3034
# FIXME Enable -Zmir-opt-level=2 again once it doesn't ice anymore

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ rm -r target/out || true
2222
no_sysroot_tests
2323

2424
echo "[BUILD] sysroot"
25-
time ./build_sysroot/build_sysroot.sh --release
25+
time ./build_sysroot/build_sysroot.sh
2626

2727
base_sysroot_tests
2828

0 commit comments

Comments
 (0)