[all-commits] [llvm/llvm-project] 639316: [AIX][compiler-rt] Fix cmake build of libatomic fo...
bzEq via All-commits
all-commits at lists.llvm.org
Fri Jun 11 17:12:45 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6393164cf249a2d4ef5cb55107cda5d9476787a3
https://github.com/llvm/llvm-project/commit/6393164cf249a2d4ef5cb55107cda5d9476787a3
Author: Kai Luo <lkail at cn.ibm.com>
Date: 2021-06-12 (Sat, 12 Jun 2021)
Changed paths:
M compiler-rt/cmake/Modules/AddCompilerRT.cmake
M compiler-rt/cmake/Modules/CompilerRTAIXUtils.cmake
M compiler-rt/lib/builtins/CMakeLists.txt
Log Message:
-----------
[AIX][compiler-rt] Fix cmake build of libatomic for cmake-3.16+
cmake-3.16+ for AIX changes the default behavior of building a `SHARED` library which breaks AIX's build of libatomic, i.e., cmake-3.16+ builds `SHARED` as an archive of dynamic libraries. To fix it, we have to build `libatomic.so.1` as `MODULE` which keeps `libatomic.so.1` as an normal dynamic library.
Reviewed By: jsji
Differential Revision: https://reviews.llvm.org/D103786
More information about the All-commits
mailing list