forked from OSchip/llvm-project
[scudo] Try to fix standalone build on armv7
When linking scudo standalone on armv7, it can't find symbols related to unwinding (e.g. __aeabi_unwind_cpp_pr0). This is because it is passing --unwindlib=none. This patch hacks around the issue by adding COMPILER_RT_UNWINDER_LINK_LIBS to the link line. I don't know anything about scudo, so I'm not sure what the original intention was. See also https://github.com/llvm/llvm-project/issues/56900 Differential Revision: https://reviews.llvm.org/D131250
This commit is contained in:
parent
a3f7a2c183
commit
8342ea6eac
|
@ -135,7 +135,7 @@ if (COMPILER_RT_HAS_GWP_ASAN)
|
|||
|
||||
endif()
|
||||
|
||||
set(SCUDO_LINK_LIBS)
|
||||
set(SCUDO_LINK_LIBS ${COMPILER_RT_UNWINDER_LINK_LIBS})
|
||||
|
||||
append_list_if(COMPILER_RT_HAS_LIBPTHREAD -pthread SCUDO_LINK_FLAGS)
|
||||
|
||||
|
|
Loading…
Reference in New Issue