]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #62141 - alexcrichton:less-assertions, r=pietroalbini
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 26 Jun 2019 09:33:42 +0000 (11:33 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 09:33:42 +0000 (11:33 +0200)
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.

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

index 2932f3737374560ceed092dcecb13950c872a79e..ef97f59cafd83005c099a4a02c0ef60ff7bb393e 100644 (file)
@@ -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