2021-11-01 21:41:44 +01:00
|
|
|
diff -uNr llvm-project/compiler-rt/CMakeLists.txt llvm-project.mod/compiler-rt/CMakeLists.txt
|
2022-02-26 12:53:42 +01:00
|
|
|
--- llvm-project/compiler-rt/CMakeLists.txt 2022-02-24 01:38:33.000000000 +0800
|
|
|
|
+++ llvm-project.mod/compiler-rt/CMakeLists.txt 2022-02-26 20:33:34.369468491 +0800
|
|
|
|
@@ -186,6 +186,9 @@
|
2021-11-01 21:41:44 +01:00
|
|
|
elseif (FUCHSIA)
|
|
|
|
set(${var}_LIBNAME "libc++")
|
|
|
|
set(${var}_INTREE 1)
|
|
|
|
+ elseif (ANDROID)
|
|
|
|
+ set(${var}_LIBNAME "libc++_shared")
|
|
|
|
+ set(${var}_SYSTEM 1)
|
|
|
|
else()
|
|
|
|
set(${var}_LIBNAME "libstdc++")
|
|
|
|
set(${var}_SYSTEM 1)
|
2022-02-26 12:53:42 +01:00
|
|
|
@@ -200,7 +203,7 @@
|
2021-11-01 21:41:44 +01:00
|
|
|
# which pulls in the ABI transitively.
|
|
|
|
set(SANITIZER_CXX_ABI "default" CACHE STRING
|
|
|
|
"Specify C++ ABI library to use.")
|
|
|
|
-set(CXXABIS none default libstdc++ libc++ libcxxabi)
|
|
|
|
+set(CXXABIS none default libc++_shared libstdc++ libc++ libcxxabi)
|
|
|
|
set_property(CACHE SANITIZER_CXX_ABI PROPERTY STRINGS ;${CXXABIS})
|
|
|
|
handle_default_cxx_lib(SANITIZER_CXX_ABI)
|
|
|
|
|
2022-02-26 12:53:42 +01:00
|
|
|
@@ -528,6 +531,8 @@
|
2021-11-01 21:41:44 +01:00
|
|
|
list(APPEND SANITIZER_CXX_ABI_LIBRARIES "c++abi")
|
|
|
|
elseif (SANITIZER_CXX_ABI_LIBNAME STREQUAL "libstdc++")
|
|
|
|
append_list_if(COMPILER_RT_HAS_LIBSTDCXX stdc++ SANITIZER_CXX_ABI_LIBRARIES)
|
|
|
|
+elseif (SANITIZER_CXX_ABI_LIBNAME STREQUAL "libc++_shared")
|
|
|
|
+ list(APPEND SANITIZER_CXX_ABI_LIBRARIES "c++_shared")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (SANITIZER_TEST_CXX_LIBNAME STREQUAL "libc++")
|