[libcxx-commits] [libcxx] ffccf96 - [libc++][ci] Test Clang ToT by default, and add jobs on Clang 11 and 12
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 9 07:18:08 PDT 2021
Author: Louis Dionne
Date: 2021-07-09T10:17:12-04:00
New Revision: ffccf96e90d6b726188c3ddbe5142f06762567ad
URL: https://github.com/llvm/llvm-project/commit/ffccf96e90d6b726188c3ddbe5142f06762567ad
DIFF: https://github.com/llvm/llvm-project/commit/ffccf96e90d6b726188c3ddbe5142f06762567ad.diff
LOG: [libc++][ci] Test Clang ToT by default, and add jobs on Clang 11 and 12
It makes the most sense to test with Clang ToT by default since that's
exactly what we're trying to QA: that libc++ works with whatever compiler
we're going to release next.
Added:
Modified:
libcxx/utils/ci/buildkite-pipeline.yml
libcxx/utils/ci/run-buildbot
Removed:
################################################################################
diff --git a/libcxx/utils/ci/buildkite-pipeline.yml b/libcxx/utils/ci/buildkite-pipeline.yml
index 50ea46597f421..095bfaa72bae6 100644
--- a/libcxx/utils/ci/buildkite-pipeline.yml
+++ b/libcxx/utils/ci/buildkite-pipeline.yml
@@ -124,7 +124,7 @@ steps:
- exit_status: -1 # Agent was lost
limit: 2
- - label: "GCC Current/C++20"
+ - label: "GCC 11"
command: "libcxx/utils/ci/run-buildbot generic-gcc"
artifact_paths:
- "**/test-results.xml"
@@ -140,6 +140,28 @@ steps:
#
- wait
+ - label: "Clang 11"
+ command: "libcxx/utils/ci/run-buildbot generic-clang-11"
+ artifact_paths:
+ - "**/test-results.xml"
+ agents:
+ queue: "libcxx-builders"
+ retry:
+ automatic:
+ - exit_status: -1 # Agent was lost
+ limit: 2
+
+ - label: "Clang 12"
+ command: "libcxx/utils/ci/run-buildbot generic-clang-12"
+ artifact_paths:
+ - "**/test-results.xml"
+ agents:
+ queue: "libcxx-builders"
+ retry:
+ automatic:
+ - exit_status: -1 # Agent was lost
+ limit: 2
+
- label: "-fno-exceptions"
command: "libcxx/utils/ci/run-buildbot generic-noexceptions"
artifact_paths:
diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index b0c3e1adcda4b..c2feb0776b5a8 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -180,8 +180,6 @@ check-generated-output)
python3 libcxx/utils/graph_header_deps.py >/dev/null
;;
generic-cxx03)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cxx03.cmake" \
-DLIBCXX_TEST_CONFIG="${MONOREPO_ROOT}/libcxx/test/configs/libcxx-trunk-shared.cfg.in"
@@ -189,8 +187,6 @@ generic-cxx03)
check-abi-list
;;
generic-cxx11)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cxx11.cmake" \
-DLIBCXX_TEST_CONFIG="${MONOREPO_ROOT}/libcxx/test/configs/libcxx-trunk-shared.cfg.in"
@@ -198,8 +194,6 @@ generic-cxx11)
check-abi-list
;;
generic-cxx14)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cxx14.cmake" \
-DLIBCXX_TEST_CONFIG="${MONOREPO_ROOT}/libcxx/test/configs/libcxx-trunk-shared.cfg.in"
@@ -207,8 +201,6 @@ generic-cxx14)
check-abi-list
;;
generic-cxx17)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cxx17.cmake" \
-DLIBCXX_TEST_CONFIG="${MONOREPO_ROOT}/libcxx/test/configs/libcxx-trunk-shared.cfg.in"
@@ -216,8 +208,6 @@ generic-cxx17)
check-abi-list
;;
generic-cxx20)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cxx20.cmake" \
-DLIBCXX_TEST_CONFIG="${MONOREPO_ROOT}/libcxx/test/configs/libcxx-trunk-shared.cfg.in"
@@ -225,8 +215,6 @@ generic-cxx20)
check-abi-list
;;
generic-cxx2b)
- export CC=clang-tot
- export CXX=clang++-tot
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cxx2b.cmake" \
-DLIBCXX_TEST_CONFIG="${MONOREPO_ROOT}/libcxx/test/configs/libcxx-trunk-shared.cfg.in"
@@ -234,50 +222,52 @@ generic-cxx2b)
check-abi-list
;;
generic-assertions)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-assertions.cmake"
check-cxx-cxxabi
check-abi-list
;;
generic-debug-iterators)
- export CC=clang-tot
- export CXX=clang++-tot
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-debug-iterators.cmake"
check-cxx-cxxabi
check-abi-list
;;
generic-noexceptions)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-noexceptions.cmake"
check-cxx-cxxabi
;;
generic-modules)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-modules.cmake"
check-cxx-cxxabi
;;
generic-static)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-static.cmake" \
-DLIBCXX_TEST_CONFIG="${MONOREPO_ROOT}/libcxx/test/configs/libcxx-trunk-static.cfg.in"
check-cxx-cxxabi
;;
generic-32bit)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-32bits.cmake"
check-cxx-cxxabi
;;
+generic-clang-11)
+ export CC=clang-11
+ export CXX=clang++-11
+ clean
+ generate-cmake
+ check-cxx-cxxabi
+;;
+generic-clang-12)
+ export CC=clang-12
+ export CXX=clang++-12
+ clean
+ generate-cmake
+ check-cxx-cxxabi
+;;
generic-gcc)
export CC=gcc-11
export CXX=g++-11
@@ -286,85 +276,61 @@ generic-gcc)
check-cxx-cxxabi
;;
generic-asan)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-asan.cmake"
check-cxx-cxxabi
;;
generic-msan)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-msan.cmake"
check-cxx-cxxabi
;;
generic-tsan)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-tsan.cmake"
check-cxx-cxxabi
;;
generic-ubsan)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-ubsan.cmake"
check-cxx-cxxabi
;;
generic-with_llvm_unwinder)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -DLIBCXXABI_USE_LLVM_UNWINDER=ON
check-cxx-cxxabi
;;
generic-singlethreaded)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-singlethreaded.cmake"
check-cxx-cxxabi
;;
generic-no-debug)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-no-debug.cmake"
check-cxx-cxxabi
;;
generic-no-filesystem)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-no-filesystem.cmake"
check-cxx-cxxabi
;;
generic-no-random_device)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-no-random_device.cmake"
check-cxx-cxxabi
;;
generic-no-localization)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-no-localization.cmake"
check-cxx-cxxabi
;;
x86_64-apple-system)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Apple.cmake"
check-cxx-cxxabi
;;
x86_64-apple-system-noexceptions)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Apple.cmake" \
-DLIBCXX_ENABLE_EXCEPTIONS=OFF \
@@ -394,8 +360,6 @@ x86_64-apple-system-backdeployment-*)
PARAMS+=";abi_runtime_root=${OSX_ROOTS}/macOS/libc++abi/${DEPLOYMENT_TARGET}"
PARAMS+=";use_system_cxx_lib=True"
- export CC=clang
- export CXX=clang++
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Apple.cmake" \
-DLIBCXX_TEST_PARAMS="${PARAMS}" \
-DLIBCXXABI_TEST_PARAMS="${PARAMS}"
@@ -403,15 +367,11 @@ x86_64-apple-system-backdeployment-*)
check-cxx-cxxabi
;;
benchmarks)
- export CC=clang
- export CXX=clang++
clean
generate-cmake
check-cxx-benchmarks
;;
documentation)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -DLLVM_ENABLE_SPHINX=ON
@@ -419,8 +379,6 @@ documentation)
${NINJA} -vC "${BUILD_DIR}" docs-libcxx-html
;;
unified-standalone)
- export CC=clang
- export CXX=clang++
clean
@@ -436,9 +394,6 @@ unified-standalone)
check-cxx-cxxabi
;;
runtimes-build)
- export CC=clang
- export CXX=clang++
-
clean
echo "--- Generating CMake"
@@ -465,16 +420,11 @@ runtimes-build)
${NINJA} -C "${BUILD_DIR}" install-runtimes
;;
legacy-test-config)
- export CC=clang
- export CXX=clang++
clean
generate-cmake -DLIBCXX_TEST_CONFIG="${MONOREPO_ROOT}/libcxx/test/configs/legacy.cfg.in"
check-cxx-cxxabi
;;
legacy-standalone)
- export CC=clang
- export CXX=clang++
-
clean
echo "--- Generating CMake"
More information about the libcxx-commits
mailing list