Revert "[compiler-rt] Fix scudo build on ARM"
authorLeandro Lupori <leandro.lupori@linaro.org>
Tue, 4 Apr 2023 17:22:53 +0000 (14:22 -0300)
committerLeandro Lupori <leandro.lupori@linaro.org>
Tue, 4 Apr 2023 17:26:13 +0000 (14:26 -0300)
This broke fuchsia cross-compile.

This reverts commit f1f3dd64bfd2af94f9cccd01cf9e213fe3e69707.

compiler-rt/lib/scudo/standalone/CMakeLists.txt

index 1626aaa..86d4a47 100644 (file)
@@ -138,19 +138,8 @@ 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)
-  else()
-    message(FATAL_ERROR "No suitable unwinder library")
-  endif()
-
   add_dependencies(scudo_standalone gwp_asan)
   list(APPEND SCUDO_OBJECT_LIBS
        RTGwpAsan RTGwpAsanBacktraceLibc RTGwpAsanSegvHandler
@@ -163,6 +152,8 @@ 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/)