projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa58a11
)
Link libclang_rt.asan.so against libatomic when necessary
author
Łukasz Stelmach
<l.stelmach@samsung.com>
Wed, 26 Apr 2023 10:53:28 +0000
(12:53 +0200)
committer
Dongkyun Son
<dongkyun.s@samsung.com>
Thu, 5 Dec 2024 06:30:32 +0000
(15:30 +0900)
To build libclang_rt.asan.so on RISC-V it is required to link it against
libatomic.
Change-Id: Iafdc20fc8ecffeeaa289e03b01267bbabdd48a9e
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
compiler-rt/lib/asan/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/asan/CMakeLists.txt
b/compiler-rt/lib/asan/CMakeLists.txt
index 463ea233b37aa4da49dadb092736eb1517e27721..c0dc9a91932a393d203120588fb1c05e1b1b66e6 100644
(file)
--- a/
compiler-rt/lib/asan/CMakeLists.txt
+++ b/
compiler-rt/lib/asan/CMakeLists.txt
@@
-130,6
+130,7
@@
append_list_if(COMPILER_RT_HAS_LIBM m ASAN_DYNAMIC_LIBS)
append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread ASAN_DYNAMIC_LIBS)
append_list_if(COMPILER_RT_HAS_LIBLOG log ASAN_DYNAMIC_LIBS)
append_list_if(MINGW "${MINGW_LIBRARIES}" ASAN_DYNAMIC_LIBS)
+list(APPEND ASAN_DYNAMIC_LIBS ${LLVM_ATOMIC_LIB})
# Compile ASan sources into an object library.