[PATCH] D158690: [clang] Fix the pre-commit CI pipeline after changes to libc++'s own CI pipeline

Louis Dionne via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 23 19:22:34 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbb6073c7e32b: [clang] Fix the pre-commit CI pipeline after changes to libc++'s own CI pipeline (authored by ldionne).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158690/new/

https://reviews.llvm.org/D158690

Files:
  clang/utils/ci/run-buildbot


Index: clang/utils/ci/run-buildbot
===================================================================
--- clang/utils/ci/run-buildbot
+++ clang/utils/ci/run-buildbot
@@ -60,6 +60,10 @@
 BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build/${BUILDER}}"
 INSTALL_DIR="${BUILD_DIR}/install"
 
+function clean() {
+    rm -rf "${BUILD_DIR}"
+}
+
 # Print the version of a few tools to aid diagnostics in some cases
 cmake --version
 ninja --version
@@ -95,7 +99,17 @@
     export CC=$(pwd)/install/bin/clang
     export CXX=$(pwd)/install/bin/clang++
     chmod +x install/bin/clang install/bin/clang++
-    libcxx/utils/ci/run-buildbot generic-cxx03
+
+    clean
+    cmake -S "${MONOREPO_ROOT}/runtimes" -B "${BUILD_DIR}" -GNinja \
+          -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
+          -DLIBCXX_CXX_ABI=libcxxabi \
+          -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+          -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
+          -DLIBCXX_TEST_PARAMS="std=c++03" \
+          -DLIBCXXABI_TEST_PARAMS="std=c++03"
+
+    ninja -vC "${BUILD_DIR}" check-runtimes
 ;;
 generic-cxx26)
     buildkite-agent artifact download install.tar.xz .
@@ -103,7 +117,17 @@
     export CC=$(pwd)/install/bin/clang
     export CXX=$(pwd)/install/bin/clang++
     chmod +x install/bin/clang install/bin/clang++
-    libcxx/utils/ci/run-buildbot generic-cxx26
+
+    clean
+    cmake -S "${MONOREPO_ROOT}/runtimes" -B "${BUILD_DIR}" -GNinja \
+          -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
+          -DLIBCXX_CXX_ABI=libcxxabi \
+          -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+          -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
+          -DLIBCXX_TEST_PARAMS="std=c++26" \
+          -DLIBCXXABI_TEST_PARAMS="std=c++26"
+
+    ninja -vC "${BUILD_DIR}" check-runtimes
 ;;
 generic-modules)
     buildkite-agent artifact download install.tar.xz .
@@ -111,7 +135,17 @@
     export CC=$(pwd)/install/bin/clang
     export CXX=$(pwd)/install/bin/clang++
     chmod +x install/bin/clang install/bin/clang++
-    libcxx/utils/ci/run-buildbot generic-modules
+
+    clean
+    cmake -S "${MONOREPO_ROOT}/runtimes" -B "${BUILD_DIR}" -GNinja \
+          -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
+          -DLIBCXX_CXX_ABI=libcxxabi \
+          -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+          -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
+          -DLIBCXX_TEST_PARAMS="enable_modules=clang" \
+          -DLIBCXXABI_TEST_PARAMS="enable_modules=clang"
+
+    ninja -vC "${BUILD_DIR}" check-runtimes
 ;;
 #################################################################
 # Insert vendor-specific internal configurations below.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158690.552957.patch
Type: text/x-patch
Size: 2640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230824/7cae5d86/attachment.bin>


More information about the cfe-commits mailing list