[PATCH] D142888: [compiler-rt] Fix scudo build on ARM
Mitch Phillips via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 08:46:25 PDT 2023
hctim added a comment.
In D142888#4225117 <https://reviews.llvm.org/D142888#4225117>, @Chia-hungDuan wrote:
> Right, Scudo works on arm32 on Android. Android doesn't use cmake so I guess there's a proper unwind lib linked on arm32 Android in Android.bp when Scudo+gwp_asan is enabled. I didn't try it on arm32 Android, maybe @hctim can comment more.
Yeah, I can't say I've tested arm32, and it seems like nobody else here has either. I can't say I have intentions to do it.
================
Comment at: compiler-rt/lib/scudo/standalone/CMakeLists.txt:149
-set(SCUDO_LINK_LIBS ${COMPILER_RT_UNWINDER_LINK_LIBS})
-
----------------
it seems like this is not needed for non-gwp-asan. it can be removed and merged (as i've suggested) under the COMPILER_RT_HAS_GWP_ASAN branch.
================
Comment at: compiler-rt/lib/scudo/standalone/CMakeLists.txt:157
if (COMPILER_RT_HAS_GWP_ASAN)
add_dependencies(scudo_standalone gwp_asan)
----------------
Maybe instead, just:
```
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()
... other stuff already in this branch
endif()
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142888/new/
https://reviews.llvm.org/D142888
More information about the llvm-commits
mailing list