mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 13:28:35 +00:00
33 lines
907 B
Diff
33 lines
907 B
Diff
Index: llvm-toolchain-snapshot_14~++20210805101753+11565320fd55/lld/tools/lld/CMakeLists.txt
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_14~++20210805101753+11565320fd55.orig/lld/tools/lld/CMakeLists.txt
|
|
+++ llvm-toolchain-snapshot_14~++20210805101753+11565320fd55/lld/tools/lld/CMakeLists.txt
|
|
@@ -1,10 +1,18 @@
|
|
+set(LLD_ATOMIC_LIB "")
|
|
+
|
|
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
+if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i386" OR
|
|
+ CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i686" OR
|
|
+ CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "amd64"
|
|
+ )
|
|
+ list(APPEND LLD_ATOMIC_LIB "atomic")
|
|
+endif()
|
|
+
|
|
add_lld_tool(lld
|
|
lld.cpp
|
|
-
|
|
SUPPORT_PLUGINS
|
|
)
|
|
export_executable_symbols_for_plugins(lld)
|
|
@@ -18,6 +26,7 @@ target_link_libraries(lld
|
|
lldMachO
|
|
lldMinGW
|
|
lldWasm
|
|
+ ${LLD_ATOMIC_LIB}
|
|
)
|
|
|
|
install(TARGETS lld
|