forked from pool/llvm15
2e423ce050
/usr/bin/python3 (bsc#1212476). OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm15?expand=0&rev=39
14 lines
408 B
Diff
14 lines
408 B
Diff
--- a/llvm/tools/llvm-shlib/CMakeLists.txt
|
|
+++ b/llvm/tools/llvm-shlib/CMakeLists.txt
|
|
@@ -63,6 +63,10 @@ if(LLVM_BUILD_LLVM_DYLIB)
|
|
|
|
target_link_libraries(LLVM PRIVATE ${LIB_NAMES})
|
|
|
|
+ if(LLVM_ENABLE_THREADS AND NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
|
|
+ target_link_libraries(LLVM PUBLIC atomic)
|
|
+ endif()
|
|
+
|
|
if (APPLE)
|
|
set_property(TARGET LLVM APPEND_STRING PROPERTY
|
|
LINK_FLAGS
|