[all-commits] [llvm/llvm-project] 1a1443: Make sure libLLVM users link with libatomic if needed
Aaron Puchert via All-commits
all-commits at lists.llvm.org
Sun Sep 18 10:12:40 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1a14436c35b4738a22554cc4a7349bfcf3ceea78
https://github.com/llvm/llvm-project/commit/1a14436c35b4738a22554cc4a7349bfcf3ceea78
Author: Aaron Puchert <aaronpuchert at alice-dsl.net>
Date: 2022-09-18 (Sun, 18 Sep 2022)
Changed paths:
M llvm/tools/llvm-shlib/CMakeLists.txt
Log Message:
-----------
Make sure libLLVM users link with libatomic if needed
64-bit atomics are used in llvm/ADT/Statistic.h, which means that users
of libLLVM.so might also have to link with libatomic. To avoid having
to special-case the library here, we simply add all `LLVM_SYSTEM_LIBS`
as public link dependencies to libLLVM.
This fixes a build failure on PowerPC 32-bit.
Reviewed By: beanz
Differential Revision: https://reviews.llvm.org/D132799
More information about the All-commits
mailing list