File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -434,12 +434,14 @@ function(_add_variant_link_flags)
434
434
# we need to add the math library, which is linked implicitly by libc++.
435
435
list (APPEND result "-nostdlib++" "-lm" )
436
436
if ("${LFLAGS_ARCH} " MATCHES armv7 )
437
- list ( APPEND result "${SWIFT_ANDROID_NDK_PATH} /sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++_shared.so " )
437
+ set ( android_libcxx_path "${SWIFT_ANDROID_NDK_PATH} /sources/cxx-stl/llvm-libc++/libs/armeabi-v7a" )
438
438
elseif ("${LFLAGS_ARCH} " MATCHES aarch64 )
439
- list ( APPEND result "${SWIFT_ANDROID_NDK_PATH} /sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_shared.so " )
439
+ set ( android_libcxx_path "${SWIFT_ANDROID_NDK_PATH} /sources/cxx-stl/llvm-libc++/libs/arm64-v8a" )
440
440
else ()
441
441
message (SEND_ERROR "unknown architecture (${LFLAGS_ARCH} ) for android" )
442
442
endif ()
443
+ list (APPEND link_libraries "${android_libcxx_path} /libc++abi.a" )
444
+ list (APPEND link_libraries "${android_libcxx_path} /libc++_shared.so" )
443
445
swift_android_lib_for_arch (${LFLAGS_ARCH} ${LFLAGS_ARCH} _LIB )
444
446
foreach (path IN LISTS ${LFLAGS_ARCH} _LIB )
445
447
list (APPEND library_search_directories ${path} )
You can’t perform that action at this time.
0 commit comments