From 94838dc67e7d57f1d807d609f0b45524196c6824 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Sun, 20 Feb 2022 04:31:41 -0500 Subject: [PATCH] CI: enable assertions (both Julia assertions and LLVM assertions) for the `llvmpasses` job (#44278) --- .buildkite/pipelines/main/misc/llvmpasses.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.buildkite/pipelines/main/misc/llvmpasses.yml b/.buildkite/pipelines/main/misc/llvmpasses.yml index 3acc4c05c2391..97ea2e0972b28 100644 --- a/.buildkite/pipelines/main/misc/llvmpasses.yml +++ b/.buildkite/pipelines/main/misc/llvmpasses.yml @@ -40,9 +40,12 @@ steps: - "/cache/repos:/cache/repos" commands: | echo "--- make release" - make --output-sync -j$${JULIA_CPU_THREADS:?} release JULIA_PRECOMPILE=0 + # Enable Julia assertions: FORCE_ASSERTIONS=1 + # Enable LLVM assertions: LLVM_ASSERTIONS=1 + export MAKE_ASSERT_FLAGS="FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1" + make --output-sync -j$${JULIA_CPU_THREADS:?} release JULIA_PRECOMPILE=0 $${MAKE_ASSERT_FLAGS:?} echo "--- make src/install-analysis-deps" - make --output-sync -j$${JULIA_CPU_THREADS:?} -C src install-analysis-deps + make --output-sync -j$${JULIA_CPU_THREADS:?} -C src install-analysis-deps $${MAKE_ASSERT_FLAGS:?} echo "+++ make test/llvmpasses" - make --output-sync -j$${JULIA_CPU_THREADS:?} -C test/llvmpasses + make --output-sync -j$${JULIA_CPU_THREADS:?} -C test/llvmpasses $${MAKE_ASSERT_FLAGS:?} timeout_in_minutes: 60