[llvm] 4bb635f - [CMake] Make libLLVM functionable for Android

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 10 18:19:19 PST 2023


Author: Kudryashov Evgeny
Date: 2023-01-10T18:18:50-08:00
New Revision: 4bb635f90c9e47ff65a2d58d1c77db80dc8ea273

URL: https://github.com/llvm/llvm-project/commit/4bb635f90c9e47ff65a2d58d1c77db80dc8ea273
DIFF: https://github.com/llvm/llvm-project/commit/4bb635f90c9e47ff65a2d58d1c77db80dc8ea273.diff

LOG: [CMake] Make libLLVM functionable for Android

libLLVM.so is empty if it is built with Android NDK (`-DLLVM_BUILD_LLVM_DYLIB=ON`). The patch fixes it.

Reviewed By: xbolva00

Differential Revision: https://reviews.llvm.org/D140268

Added: 
    

Modified: 
    llvm/tools/llvm-shlib/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-shlib/CMakeLists.txt b/llvm/tools/llvm-shlib/CMakeLists.txt
index eb4d9891c929..90e290435725 100644
--- a/llvm/tools/llvm-shlib/CMakeLists.txt
+++ b/llvm/tools/llvm-shlib/CMakeLists.txt
@@ -39,6 +39,7 @@ if(LLVM_BUILD_LLVM_DYLIB)
      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


        


More information about the llvm-commits mailing list