aboutsummaryrefslogtreecommitdiff
path: root/libcxx/utils
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-06-17 20:36:14 -0400
committerGitHub <noreply@github.com>2024-06-17 20:36:14 -0400
commit2cf2f1b2b6219b606faeade2342c3d2288658ab0 (patch)
tree7fafcbf7f0598ba46379ebbe330828a67a62ee79 /libcxx/utils
parent753498eed1d2d6d8c419bae5b65458640e5fbfd7 (diff)
downloadllvm-2cf2f1b2b6219b606faeade2342c3d2288658ab0.zip
llvm-2cf2f1b2b6219b606faeade2342c3d2288658ab0.tar.gz
llvm-2cf2f1b2b6219b606faeade2342c3d2288658ab0.tar.bz2
[libc++] Test suite adjustments on macOS (#95835)
This patch makes a few adjustments to the way we run the tests in the Apple configuration on macOS: First, we stop using DYLD_LIBRARY_PATH. Using that environment variable leads to libc++.dylib being replaced by the just-built one for the whole process, and that assumes compatibility between the system-provided dylib and the just-built one. Unfortunately, that is not the case anymore due to typed allocation, which is only available in the system one. Instead, we want to layer the just-built libc++ on top of the system-provided one, which seems to be what happens when we set a rpath instead. Second, add a missing XFAIL for a std::print test that didn't work as expected when building with availability annotations enabled. When we enable these annotations, std::print falls back to a non-unicode and non-terminal output, which breaks the test.
Diffstat (limited to 'libcxx/utils')
-rwxr-xr-xlibcxx/utils/ci/apple-install-libcxx.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/utils/ci/apple-install-libcxx.sh b/libcxx/utils/ci/apple-install-libcxx.sh
index 15504f5..ddefabe 100755
--- a/libcxx/utils/ci/apple-install-libcxx.sh
+++ b/libcxx/utils/ci/apple-install-libcxx.sh
@@ -127,9 +127,9 @@ for arch in ${architectures}; do
-DCMAKE_OSX_ARCHITECTURES="${arch}" \
-DLIBCXXABI_LIBRARY_VERSION="${version}" \
-DLIBCXX_LIBRARY_VERSION="${version}" \
- -DLIBCXX_TEST_PARAMS="target_triple=${target}" \
- -DLIBCXXABI_TEST_PARAMS="target_triple=${target}" \
- -DLIBUNWIND_TEST_PARAMS="target_triple=${target}"
+ -DLIBCXX_TEST_PARAMS="target_triple=${target};stdlib=apple-libc++" \
+ -DLIBCXXABI_TEST_PARAMS="target_triple=${target};stdlib=apple-libc++" \
+ -DLIBUNWIND_TEST_PARAMS="target_triple=${target};stdlib=apple-libc++"
if [ "$headers_only" = true ]; then
xcrun cmake --build "${build_dir}/${arch}" --target install-cxx-headers install-cxxabi-headers -- -v