[compiler-rt] e1e9726 - Reland "[compiler-rt] Fix scudo build on ARM"
Leandro Lupori via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 13 13:59:52 PDT 2023
Author: Leandro Lupori
Date: 2023-04-13T17:57:51-03:00
New Revision: e1e972689b9138db795885a5468a15aafbe7cb51
URL: https://github.com/llvm/llvm-project/commit/e1e972689b9138db795885a5468a15aafbe7cb51
DIFF: https://github.com/llvm/llvm-project/commit/e1e972689b9138db795885a5468a15aafbe7cb51.diff
LOG: Reland "[compiler-rt] Fix scudo build on ARM"
This reverts commit 5abef0bdbe9237b5728215bb7cd915ffb960e5c3 and
fixes Fuchsia AArch64 cross-compile.
Added:
Modified:
compiler-rt/lib/scudo/standalone/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
index b2f4ff81c9aad..0f9a483071693 100644
--- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt
+++ b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
@@ -137,8 +137,19 @@ set(SCUDO_SOURCES_CXX_WRAPPERS
)
set(SCUDO_OBJECT_LIBS)
+set(SCUDO_LINK_LIBS)
if (COMPILER_RT_HAS_GWP_ASAN)
+ if(COMPILER_RT_USE_LLVM_UNWINDER)
+ list(APPEND SCUDO_LINK_LIBS ${COMPILER_RT_UNWINDER_LINK_LIBS} dl)
+ elseif (COMPILER_RT_HAS_GCC_S_LIB)
+ list(APPEND SCUDO_LINK_LIBS gcc_s)
+ elseif (COMPILER_RT_HAS_GCC_LIB)
+ list(APPEND SCUDO_LINK_LIBS gcc)
+ elseif (NOT COMPILER_RT_USE_BUILTINS_LIBRARY)
+ message(FATAL_ERROR "No suitable unwinder library")
+ endif()
+
add_dependencies(scudo_standalone gwp_asan)
list(APPEND SCUDO_OBJECT_LIBS
RTGwpAsan RTGwpAsanBacktraceLibc RTGwpAsanSegvHandler
@@ -151,8 +162,6 @@ if (COMPILER_RT_HAS_GWP_ASAN)
endif()
-set(SCUDO_LINK_LIBS ${COMPILER_RT_UNWINDER_LINK_LIBS})
-
if(COMPILER_RT_BUILD_SCUDO_STANDALONE_WITH_LLVM_LIBC)
include_directories(${COMPILER_RT_BINARY_DIR}/../libc/include/)
More information about the llvm-commits
mailing list