1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
if LIBCXXABI_USE_COMPILER_RT=ON, add builtins to libcxxabi library
flags, otherwise add libgcc following how libunwind does the same
Index: llvm-toolchain-snapshot_21~++20250422120724+c1940cd0deef/libcxxabi/src/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_21~++20250422120724+c1940cd0deef.orig/libcxxabi/src/CMakeLists.txt
+++ llvm-toolchain-snapshot_21~++20250422120724+c1940cd0deef/libcxxabi/src/CMakeLists.txt
@@ -81,7 +81,9 @@ if (FUCHSIA)
add_link_flags("-Wl,--push-state,--as-needed,-lzircon,--pop-state")
endif()
-if (NOT LIBCXXABI_USE_COMPILER_RT)
+if (LIBCXXABI_USE_COMPILER_RT)
+ add_library_flags("${LIBCXXABI_BUILTINS_LIBRARY}")
+else()
add_library_flags_if(LIBCXXABI_HAS_GCC_LIB gcc)
endif()
if (NOT LIBCXXABI_USE_LLVM_UNWINDER)
|