- exit_status: -1 # Agent was lost
limit: 2
+ - label: "Runtimes build"
+ command: "libcxx/utils/ci/run-buildbot runtimes-build"
+ artifact_paths:
+ - "**/test-results.xml"
+ agents:
+ queue: "libcxx-builders"
+ retry:
+ automatic:
+ - exit_status: -1 # Agent was lost
+ limit: 2
+
# All jobs defined before this `wait` will run whenever a CI job is started.
# Jobs defined after the `wait` will run only if all the jobs above succeeded.
# We use this to reduce the load on testers that have more constrained resources
check-cxx-cxxabi
;;
+runtimes-build)
+ export CC=clang
+ export CXX=clang++
+
+ clean
+
+ echo "--- Generating CMake"
+ cmake -S "${MONOREPO_ROOT}/llvm" \
+ -B "${BUILD_DIR}" \
+ -GNinja \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
+ -DLLVM_ENABLE_PROJECTS="clang" \
+ -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" \
+ -DLLVM_RUNTIME_TARGETS="x86_64-unknown-linux-gnu"
+
+ echo "+++ Running the libc++ and libc++abi tests"
+ ${NINJA} -C "${BUILD_DIR}" check-runtimes
+
+ echo "--- Installing libc++ and libc++abi to a fake location"
+ ${NINJA} -C "${BUILD_DIR}" install-cxx install-cxxabi
+;;
legacy-standalone)
export CC=clang
export CXX=clang++