Skip to content

Commit ef227f5

Browse files
committed
Auto merge of #44641 - alexcrichton:disable-more-osx-assertions, r=Mark-Simulacrum
ci: Disable rustc debug assertions on OSX This commit disables debug assertions for OSX in an effort to improve cycle time on OSX. It looks like #44610 didn't shave off quite as much time as desired so let's see how much this helps.
2 parents 71e3767 + c1a83ac commit ef227f5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Diff for: .travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ matrix:
3434
SCCACHE_ERROR_LOG=/tmp/sccache.log
3535
MACOSX_DEPLOYMENT_TARGET=10.7
3636
NO_LLVM_ASSERTIONS=1
37+
NO_DEBUG_ASSERTIONS=1
3738
os: osx
3839
osx_image: xcode7
3940
if: branch = auto
@@ -54,6 +55,7 @@ matrix:
5455
MACOSX_DEPLOYMENT_TARGET=10.8
5556
MACOSX_STD_DEPLOYMENT_TARGET=10.7
5657
NO_LLVM_ASSERTIONS=1
58+
NO_DEBUG_ASSERTIONS=1
5759
os: osx
5860
osx_image: xcode8.2
5961
if: branch = auto
@@ -67,6 +69,7 @@ matrix:
6769
MACOSX_DEPLOYMENT_TARGET=10.8
6870
MACOSX_STD_DEPLOYMENT_TARGET=10.7
6971
NO_LLVM_ASSERTIONS=1
72+
NO_DEBUG_ASSERTIONS=1
7073
os: osx
7174
osx_image: xcode8.2
7275
if: branch = auto
@@ -86,6 +89,7 @@ matrix:
8689
SCCACHE_ERROR_LOG=/tmp/sccache.log
8790
MACOSX_DEPLOYMENT_TARGET=10.7
8891
NO_LLVM_ASSERTIONS=1
92+
NO_DEBUG_ASSERTIONS=1
8993
os: osx
9094
osx_image: xcode7
9195
if: branch = auto
@@ -99,6 +103,7 @@ matrix:
99103
SCCACHE_ERROR_LOG=/tmp/sccache.log
100104
MACOSX_DEPLOYMENT_TARGET=10.7
101105
NO_LLVM_ASSERTIONS=1
106+
NO_DEBUG_ASSERTIONS=1
102107
os: osx
103108
osx_image: xcode7
104109
if: branch = auto

Diff for: src/ci/run.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ if [ "$DEPLOY$DEPLOY_ALT" != "" ]; then
5252
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-assertions"
5353
fi
5454
else
55-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-debug-assertions"
55+
# We almost always want debug assertions enabled, but sometimes this takes too
56+
# long for too little benefit, so we just turn them off.
57+
if [ "$NO_DEBUG_ASSERTIONS" = "" ]; then
58+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-debug-assertions"
59+
fi
5660

5761
# In general we always want to run tests with LLVM assertions enabled, but not
5862
# all platforms currently support that, so we have an option to disable.

0 commit comments

Comments
 (0)