[PATCH] D103824: [AIX] Build libLTO as MODULE rather than SHARED
David Tenty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 10 08:15:29 PDT 2021
daltenty updated this revision to Diff 351183.
daltenty added a comment.
- Address comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103824/new/
https://reviews.llvm.org/D103824
Files:
llvm/tools/lto/CMakeLists.txt
Index: llvm/tools/lto/CMakeLists.txt
===================================================================
--- llvm/tools/lto/CMakeLists.txt
+++ llvm/tools/lto/CMakeLists.txt
@@ -21,8 +21,16 @@
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
-add_llvm_library(LTO SHARED INSTALL_WITH_TOOLCHAIN ${SOURCES} DEPENDS
- intrinsics_gen)
+if(CMAKE_SYSTEM_NAME STREQUAL AIX)
+ set(LTO_LIBRARY_TYPE MODULE)
+ set(LTO_LIBRARY_NAME libLTO)
+ else()
+ set(LTO_LIBRARY_TYPE SHARED)
+ set(LTO_LIBRARY_NAME LTO)
+endif()
+
+add_llvm_library(${LTO_LIBRARY_NAME} ${LTO_LIBRARY_TYPE} INSTALL_WITH_TOOLCHAIN
+ ${SOURCES} DEPENDS intrinsics_gen)
install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
DESTINATION include/llvm-c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103824.351183.patch
Type: text/x-patch
Size: 756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210610/c5684b3e/attachment.bin>
More information about the llvm-commits
mailing list