about summary refs log tree commit diff
path: root/src/ci/docker
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-06-26 01:38:08 -0700
committerAlex Crichton <alex@alexcrichton.com>2019-06-26 01:38:08 -0700
commit07efcf25c1a3de81da71d7ab9f40f013f4c78e0b (patch)
treed0d251aa18a92e545e22639a315de38d49b99e95 /src/ci/docker
parentd3e2cec29225a46298ec4ebf082f34ebd7cfeecf (diff)
downloadrust-07efcf25c1a3de81da71d7ab9f40f013f4c78e0b.tar.gz
rust-07efcf25c1a3de81da71d7ab9f40f013f4c78e0b.zip
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.
Diffstat (limited to 'src/ci/docker')
-rw-r--r--src/ci/docker/x86_64-gnu-llvm-6.0/Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ci/docker/x86_64-gnu-llvm-6.0/Dockerfile b/src/ci/docker/x86_64-gnu-llvm-6.0/Dockerfile
index 2932f373737..ef97f59cafd 100644
--- a/src/ci/docker/x86_64-gnu-llvm-6.0/Dockerfile
+++ b/src/ci/docker/x86_64-gnu-llvm-6.0/Dockerfile
@@ -25,3 +25,9 @@ ENV RUST_CONFIGURE_ARGS \
       --llvm-root=/usr/lib/llvm-6.0 \
       --enable-llvm-link-shared
 ENV SCRIPT python2.7 ../x.py test src/tools/tidy && python2.7 ../x.py test
+
+# The purpose of this container isn't to test with debug assertions and
+# this is run on all PRs, so let's get speedier builds by disabling these extra
+# checks.
+ENV NO_DEBUG_ASSERTIONS=1
+ENV NO_LLVM_ASSERTIONS=1