[libcxx-commits] [libcxx] 1b87573 - [libc++][ci] Enable modules in the Runtimes build
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 14 20:05:37 PDT 2021
Author: Louis Dionne
Date: 2021-06-14T23:05:23-04:00
New Revision: 1b87573aaf8ad6a0e1edaac7ab7b34a28f8f41bb
URL: https://github.com/llvm/llvm-project/commit/1b87573aaf8ad6a0e1edaac7ab7b34a28f8f41bb
DIFF: https://github.com/llvm/llvm-project/commit/1b87573aaf8ad6a0e1edaac7ab7b34a28f8f41bb.diff
LOG: [libc++][ci] Enable modules in the Runtimes build
The runtimes build has assertions enabled, which is necessary to catch
some of the modules-related issues we've been seeing recently. This
patch enables testing with modules in the runtimes build so as to cover
those cases.
In the future, a better solution would be to systematically use versions
of Clang that have assertions enabled. However, the Clangs we release
currently don't have assertions enabled by default, which causes a
challenge for the CI (we could try to build our own Clang from ToT with
assertions in the CI, but that poses some problems).
Differential Revision: https://reviews.llvm.org/D104252
Added:
Modified:
libcxx/utils/ci/run-buildbot
Removed:
################################################################################
diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index f25e6962b749..605e5a795aae 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -449,6 +449,10 @@ runtimes-build)
clean
echo "--- Generating CMake"
+ # TODO: We currently enable modules and assertions in the runtimes build
+ # because that provides coverage for some specific Clang failures
+ # we've been seeing recently, however it would be better to instead
+ # run all CI configurations against a Clang that has assertions enabled.
${CMAKE} \
-S "${MONOREPO_ROOT}/llvm" \
-B "${BUILD_DIR}" \
@@ -458,7 +462,8 @@ runtimes-build)
-DLLVM_ENABLE_PROJECTS="clang" \
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" \
-DLLVM_RUNTIME_TARGETS="x86_64-unknown-linux-gnu" \
- -DLLVM_ENABLE_ASSERTIONS=ON
+ -DLLVM_ENABLE_ASSERTIONS=ON \
+ -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-modules.cmake"
echo "+++ Running the libc++ and libc++abi tests"
${NINJA} -C "${BUILD_DIR}" check-runtimes
More information about the libcxx-commits
mailing list