[PATCH] D140268: [CMake] Make libLLVM functionable for Android
Evgenii Kudriashov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 18 14:53:56 PST 2022
e-kud created this revision.
Herald added a subscriber: danielkiss.
Herald added a project: All.
e-kud edited the summary of this revision.
e-kud edited the summary of this revision.
e-kud published this revision for review.
e-kud added a reviewer: xbolva00.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
libLLVM.so is empty if it is built with Android NDK (`-DLLVM_BUILD_LLVM_DYLIB=ON`). The patch fixes it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140268
Files:
llvm/tools/llvm-shlib/CMakeLists.txt
Index: llvm/tools/llvm-shlib/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-shlib/CMakeLists.txt
+++ llvm/tools/llvm-shlib/CMakeLists.txt
@@ -39,6 +39,7 @@
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD")
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly")
+ OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")) # FIXME: It should be "GNU ld for elf"
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/simple_version_script.map.in
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140268.483795.patch
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221218/fce60913/attachment.bin>
More information about the llvm-commits
mailing list