[libcxx-commits] [libcxx] 7420cf1 - [libcxx] [ci] Enable LIBCXX_ENABLE_WERROR where possible
Martin Storsjö via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 14 15:17:31 PST 2022
Author: Martin Storsjö
Date: 2022-02-15T01:17:12+02:00
New Revision: 7420cf1b15569083ba31d9002bcd176fa4852af3
URL: https://github.com/llvm/llvm-project/commit/7420cf1b15569083ba31d9002bcd176fa4852af3
DIFF: https://github.com/llvm/llvm-project/commit/7420cf1b15569083ba31d9002bcd176fa4852af3.diff
LOG: [libcxx] [ci] Enable LIBCXX_ENABLE_WERROR where possible
Only opt out from it in the few configs (GCC based) where there still
are build warnings.
Differential Revision: https://reviews.llvm.org/D119573
Added:
Modified:
libcxx/utils/ci/run-buildbot
Removed:
################################################################################
diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index 0db8fc44f8b6..8a89eb772857 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -83,6 +83,7 @@ function generate-cmake-base() {
-GNinja -DCMAKE_MAKE_PROGRAM="${NINJA}" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
+ -DLIBCXX_ENABLE_WERROR=YES \
-DLLVM_LIT_ARGS="-sv --show-unsupported --xunit-xml-output test-results.xml" \
"${@}"
}
@@ -294,7 +295,8 @@ generic-gcc)
export CXX=g++-11
clean
generate-cmake -DLIBCXX_TEST_CONFIG="llvm-libc++-shared-gcc.cfg.in" \
- -DLIBUNWIND_TEST_CONFIG="llvm-libunwind-shared.cfg.in"
+ -DLIBUNWIND_TEST_CONFIG="llvm-libunwind-shared.cfg.in" \
+ -DLIBCXX_ENABLE_WERROR=NO
check-runtimes
;;
generic-gcc-cxx11)
@@ -303,7 +305,8 @@ generic-gcc-cxx11)
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cxx11.cmake" \
-DLIBCXX_TEST_CONFIG="llvm-libc++-shared-gcc.cfg.in" \
- -DLIBUNWIND_TEST_CONFIG="llvm-libunwind-shared.cfg.in"
+ -DLIBUNWIND_TEST_CONFIG="llvm-libunwind-shared.cfg.in" \
+ -DLIBCXX_ENABLE_WERROR=NO
check-runtimes
;;
generic-asan)
More information about the libcxx-commits
mailing list