Skip to content

Commit 07efcf2

Browse files
committed
ci: Disable assertions in PR builds
The PR builder on Azure currently takes 2.5h which is a bit long, so this commit disables debug assertions and llvm assertions in an attempt to speed up that builder and have PR builds come back a bit more quickly. Other builders continue to enable debug assertions and test the compiler there.
1 parent d3e2cec commit 07efcf2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ci/docker/x86_64-gnu-llvm-6.0/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ ENV RUST_CONFIGURE_ARGS \
2525
--llvm-root=/usr/lib/llvm-6.0 \
2626
--enable-llvm-link-shared
2727
ENV SCRIPT python2.7 ../x.py test src/tools/tidy && python2.7 ../x.py test
28+
29+
# The purpose of this container isn't to test with debug assertions and
30+
# this is run on all PRs, so let's get speedier builds by disabling these extra
31+
# checks.
32+
ENV NO_DEBUG_ASSERTIONS=1
33+
ENV NO_LLVM_ASSERTIONS=1

0 commit comments

Comments
 (0)