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:
a41dd36
)
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>
Fri, 4 Apr 2025 06:38:09 +0000
(15:38 +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 e2f39f224df9c2534c099022f0cc2d5f986042d1..eed75cddccf4bd16b852876e0ce616c7a8e5d39d 100644
(file)
--- a/
compiler-rt/lib/asan/CMakeLists.txt
+++ b/
compiler-rt/lib/asan/CMakeLists.txt
@@
-154,6
+154,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.