1 set(CMAKE_BUILD_TYPE Release CACHE STRING "")
2 set(CMAKE_BUILD_WITH_INSTALL_RPATH ON CACHE BOOL "")
3 set(CMAKE_C_FLAGS "-D__LIBC_NO_CPP_MATH_OVERLOADS__" CACHE STRING "")
4 set(CMAKE_CXX_FLAGS "-D__LIBC_NO_CPP_MATH_OVERLOADS__" CACHE STRING "")
5 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-G -Wl,-bcdtors:all:-2147483548:s" CACHE STRING "")
6 set(CMAKE_AR "/usr/bin/ar" CACHE FILEPATH "")
8 set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
9 set(LIBCXX_ABI_VERSION "1" CACHE STRING "")
10 set(LIBCXX_ENABLE_ABI_LINKER_SCRIPT OFF CACHE BOOL "")
11 set(LIBCXX_ENABLE_SHARED ON CACHE BOOL "")
12 set(LIBCXX_ENABLE_STATIC OFF CACHE BOOL "")
13 set(LIBCXXABI_ENABLE_SHARED ON CACHE BOOL "")
14 set(LIBCXXABI_ENABLE_STATIC OFF CACHE BOOL "")
15 set(LIBCXX_CXX_ABI libcxxabi CACHE STRING "")
16 set(LIBUNWIND_ENABLE_SHARED ON CACHE BOOL "")
17 set(LIBUNWIND_ENABLE_STATIC OFF CACHE BOOL "")
18 set(LIBCXX_ABI_DEFINES "_LIBCPP_ABI_IOS_ALLOW_ARBITRARY_FILL_VALUE" CACHE STRING "")
20 # On AIX, both shared and static libraries are archived. As a result, both the static and the shared targets end
21 # up with a `.a` suffix, which conflict. To workaround that, we set a different output name for the static
22 # libraries, which we never actually build anyway. For more information, see https://gitlab.kitware.com/cmake/cmake/-/issues/19494.
23 set(LIBCXX_STATIC_OUTPUT_NAME "c++-static" CACHE STRING "")
24 set(LIBCXXABI_STATIC_OUTPUT_NAME "c++abi-static" CACHE STRING "")
25 set(LIBUNWIND_STATIC_OUTPUT_NAME "unwind-static" CACHE STRING "")