[libcxx-commits] [libcxx] 5953e5a - [libc++] Simplify the apple-system-hardened CI configuration (#126911)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Feb 12 14:58:16 PST 2025
Author: Louis Dionne
Date: 2025-02-12T23:58:14+01:00
New Revision: 5953e5a3c6e7c0d35f8b6282ba214eedd3228c40
URL: https://github.com/llvm/llvm-project/commit/5953e5a3c6e7c0d35f8b6282ba214eedd3228c40
DIFF: https://github.com/llvm/llvm-project/commit/5953e5a3c6e7c0d35f8b6282ba214eedd3228c40.diff
LOG: [libc++] Simplify the apple-system-hardened CI configuration (#126911)
It was basically a copy-paste of the non-hardened version of the same
job, and it's easy to remove the duplication.
Added:
Modified:
libcxx/utils/ci/run-buildbot
Removed:
################################################################################
diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index f1ede6474eb9e..0ee5bf3e71f59 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -548,59 +548,15 @@ apple-configuration)
# TODO: It would be better to run the tests against the fake-installed version of libc++ instead
xcrun --sdk macosx ninja -vC "${BUILD_DIR}/${arch}" check-cxx check-cxxabi check-cxx-abilist
;;
-apple-system-hardened)
- clean
-
- arch="$(uname -m)"
- version="$(sw_vers --productVersion)"
- params="target_triple=${arch}-apple-macosx${version}"
- params+=";hardening_mode=fast"
-
- # In the Apple system configuration, we build libc++ and libunwind separately.
- step "Installing libc++ and libc++abi in Apple-system configuration"
- ${CMAKE} \
- -S "${MONOREPO_ROOT}/runtimes" \
- -B "${BUILD_DIR}/cxx" \
- -GNinja -DCMAKE_MAKE_PROGRAM="${NINJA}" \
- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
- -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}/cxx" \
- -DLLVM_LIT_ARGS="-sv --xunit-xml-output test-results.xml --timeout=1500 --time-tests" \
- -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" \
- -DLIBCXX_CXX_ABI=libcxxabi \
- -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Apple.cmake" \
- -DLIBCXX_TEST_CONFIG="apple-libc++-system.cfg.in" \
- -DLIBCXXABI_TEST_CONFIG="apple-libc++abi-system.cfg.in" \
- -DLIBCXX_TEST_PARAMS="${params}" \
- -DLIBCXXABI_TEST_PARAMS="${params}"
-
- step "Installing libunwind in Apple-system configuration"
- ${CMAKE} \
- -S "${MONOREPO_ROOT}/runtimes" \
- -B "${BUILD_DIR}/unwind" \
- -GNinja -DCMAKE_MAKE_PROGRAM="${NINJA}" \
- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
- -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}/unwind" \
- -DLLVM_LIT_ARGS="-sv --xunit-xml-output test-results.xml --timeout=1500 --time-tests" \
- -DLLVM_ENABLE_RUNTIMES="libunwind" \
- -DLIBUNWIND_TEST_CONFIG="apple-libunwind-system.cfg.in" \
- -DLIBUNWIND_TEST_PARAMS="${params}" \
- -DCMAKE_INSTALL_NAME_DIR="/usr/lib/system"
-
- step "Running the libc++ tests"
- ${NINJA} -vC "${BUILD_DIR}/cxx" check-cxx
-
- step "Running the libc++abi tests"
- ${NINJA} -vC "${BUILD_DIR}/cxx" check-cxxabi
-
- step "Running the libunwind tests"
- ${NINJA} -vC "${BUILD_DIR}/unwind" check-unwind
-;;
-apple-system)
+apple-system|apple-system-hardened)
clean
arch="$(uname -m)"
version="$(sw_vers --productVersion)"
params="target_triple=${arch}-apple-macosx${version}"
+ if [[ "${BUILDER}" == *-hardened ]]; then
+ params+=";hardening_mode=fast"
+ fi
# In the Apple system configuration, we build libc++ and libunwind separately.
step "Installing libc++ and libc++abi in Apple-system configuration"
More information about the libcxx-commits
mailing list