mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
[dsymutil] Explicitly link against libatomic when necessary
In some systems, such as RISC-V, atomic support requires explicit linking against '-latomic' (see https://github.com/riscv/riscv-gcc/issues/12). Reviewers: davezarzycki, hhb, beanz, jfb, JDevlieghere Reviewed By: beanz, JDevlieghere Tags: #llvm Differential Revision: https://reviews.llvm.org/D69003
This commit is contained in:
parent
e5608f4ac0
commit
715ddfd799
@ -37,3 +37,7 @@ add_llvm_tool(dsymutil
|
||||
if(APPLE)
|
||||
target_link_libraries(dsymutil PRIVATE "-framework CoreFoundation")
|
||||
endif(APPLE)
|
||||
|
||||
if(HAVE_CXX_ATOMICS_WITH_LIB OR HAVE_CXX_ATOMICS64_WITH_LIB)
|
||||
target_link_libraries(dsymutil PRIVATE atomic)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user