forked from OSchip/llvm-project
Static Android build doesn't need shared libs.
llvm-svn: 244073
This commit is contained in:
parent
d3fe8198f4
commit
dfcecdeeb2
|
@ -44,7 +44,9 @@ set( __ANDROID_NDK__ True )
|
||||||
# its symbols, which significantly increases the binary size. Static linking, on
|
# its symbols, which significantly increases the binary size. Static linking, on
|
||||||
# the other hand, has little to no effect on the binary size.
|
# the other hand, has little to no effect on the binary size.
|
||||||
if( NOT DEFINED LLVM_BUILD_STATIC )
|
if( NOT DEFINED LLVM_BUILD_STATIC )
|
||||||
set( LLVM_BUILD_STATIC True )
|
set( LLVM_BUILD_STATIC True CACHE BOOL "" FORCE )
|
||||||
|
set( LLVM_ENABLE_PIC FALSE CACHE BOOL "" FORCE )
|
||||||
|
set( BUILD_SHARED_LIBS FALSE CACHE BOOL "" FORCE )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set( ANDROID_ABI "${ANDROID_ABI}" CACHE INTERNAL "Android Abi" FORCE )
|
set( ANDROID_ABI "${ANDROID_ABI}" CACHE INTERNAL "Android Abi" FORCE )
|
||||||
|
|
Loading…
Reference in New Issue