Skip to content

Commit 0988add

Browse files
thesamesamtstellar
authored andcommitted
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 <[email protected]> Tested-by: [email protected] <[email protected]> Differential Revision: https://reviews.llvm.org/D136282 (cherry picked from commit 20132d8)
1 parent 4c3d838 commit 0988add

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

clang/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ if(CLANG_BUILT_STANDALONE)
117117
include(TableGen)
118118
include(HandleLLVMOptions)
119119
include(VersionFromVCS)
120+
include(CheckAtomic)
120121
include(GetErrcMessages)
121122
include(LLVMDistributionSupport)
122123

clang/lib/Basic/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ add_clang_library(clangBasic
110110
omp_gen
111111
)
112112

113+
target_link_libraries(clangBasic
114+
PRIVATE
115+
${LLVM_ATOMIC_LIB}
116+
)

0 commit comments

Comments
 (0)