summaryrefslogtreecommitdiff
path: root/libcxx/cmake
diff options
context:
space:
mode:
authorJake Egan <jakeegan10@gmail.com>2022-06-13 21:44:58 -0400
committerJake Egan <jakeegan10@gmail.com>2022-06-13 21:45:18 -0400
commit1cf4113952ae3e4cc75decdf6feb3ce5dd8ca4a1 (patch)
tree6b492c628d33fa2c6e747bd3d839d36f4b2dc43d /libcxx/cmake
parentac4006b0d69ff3349fdd6c0bf8e4dad9504d438a (diff)
downloadllvm-1cf4113952ae3e4cc75decdf6feb3ce5dd8ca4a1.tar.gz
[libcxx][AIX] Switch build compiler to clang
This patch switches the build compiler for AIX from ibm-clang to clang. ibm-clang++_r has `-pthread` by default, but clang for AIX doesn't, so `-pthread` had to be added to the test config. A bunch of tests now pass, so the `XFAIL` was removed. This patch also switch the build to use the visibility support available in clang-15 to control symbols exported by the shared library (AIX traditionally uses explicit export lists for this purpose). Reviewed By: #libc, #libc_abi, daltenty, #libunwind, ldionne Differential Revision: https://reviews.llvm.org/D127470
Diffstat (limited to 'libcxx/cmake')
-rw-r--r--libcxx/cmake/caches/AIX.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/cmake/caches/AIX.cmake b/libcxx/cmake/caches/AIX.cmake
index fcd4ec25ec20..b6c483a31727 100644
--- a/libcxx/cmake/caches/AIX.cmake
+++ b/libcxx/cmake/caches/AIX.cmake
@@ -3,6 +3,7 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH ON CACHE BOOL "")
set(CMAKE_C_FLAGS "-D__LIBC_NO_CPP_MATH_OVERLOADS__" CACHE STRING "")
set(CMAKE_CXX_FLAGS "-D__LIBC_NO_CPP_MATH_OVERLOADS__" CACHE STRING "")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-G -Wl,-bcdtors:all:-2147483548:s" CACHE STRING "")
+set(CMAKE_AR "/usr/bin/ar" CACHE FILEPATH "")
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
set(LIBCXX_ENABLE_ASSERTIONS OFF CACHE BOOL "")