[clang] 20132d8 - Link libclangBasic against libatomic when necessary.
Michał Górny via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 3 13:08:15 PDT 2022
Author: Sam James
Date: 2022-11-03T21:07:44+01:00
New Revision: 20132d8eaa68a6c53e152718beda1dc0f4c9ff6c
URL: https://github.com/llvm/llvm-project/commit/20132d8eaa68a6c53e152718beda1dc0f4c9ff6c
DIFF: https://github.com/llvm/llvm-project/commit/20132d8eaa68a6c53e152718beda1dc0f4c9ff6c.diff
LOG: Link libclangBasic against libatomic when necessary.
This is necessary at least on PPC32.
Depends on D136280.
Bug: https://bugs.gentoo.org/874024
Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever at Apache.Org>
Tested-by: erhard_f at mailbox.org <erhard_f at mailbox.org>
Differential Revision: https://reviews.llvm.org/D136282
Added:
Modified:
clang/CMakeLists.txt
clang/lib/Basic/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
index 2ca81e506338c..236e6fbaca280 100644
--- a/clang/CMakeLists.txt
+++ b/clang/CMakeLists.txt
@@ -63,6 +63,7 @@ if(CLANG_BUILT_STANDALONE)
include(TableGen)
include(HandleLLVMOptions)
include(VersionFromVCS)
+ include(CheckAtomic)
include(GetErrcMessages)
include(LLVMDistributionSupport)
diff --git a/clang/lib/Basic/CMakeLists.txt b/clang/lib/Basic/CMakeLists.txt
index 5d197f59ac4f7..f0f3839a7e2c3 100644
--- a/clang/lib/Basic/CMakeLists.txt
+++ b/clang/lib/Basic/CMakeLists.txt
@@ -111,3 +111,7 @@ add_clang_library(clangBasic
omp_gen
)
+target_link_libraries(clangBasic
+ PRIVATE
+ ${LLVM_ATOMIC_LIB}
+)
More information about the cfe-commits
mailing list