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 @@ -432,12 +432,14 @@ function(_add_variant_link_flags)
432
432
# we need to add the math library, which is linked implicitly by libc++.
433
433
list (APPEND result "-nostdlib++" "-lm" )
434
434
if ("${LFLAGS_ARCH} " MATCHES armv7 )
435
- list ( APPEND result "${SWIFT_ANDROID_NDK_PATH} /sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++_shared.so " )
435
+ set ( android_libcxx_path "${SWIFT_ANDROID_NDK_PATH} /sources/cxx-stl/llvm-libc++/libs/armeabi-v7a" )
436
436
elseif ("${LFLAGS_ARCH} " MATCHES aarch64 )
437
- list ( APPEND result "${SWIFT_ANDROID_NDK_PATH} /sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_shared.so " )
437
+ set ( android_libcxx_path "${SWIFT_ANDROID_NDK_PATH} /sources/cxx-stl/llvm-libc++/libs/arm64-v8a" )
438
438
else ()
439
439
message (SEND_ERROR "unknown architecture (${LFLAGS_ARCH} ) for android" )
440
440
endif ()
441
+ list (APPEND link_libraries "${android_libcxx_path} /libc++abi.a" )
442
+ list (APPEND link_libraries "${android_libcxx_path} /libc++_shared.so" )
441
443
swift_android_lib_for_arch (${LFLAGS_ARCH} ${LFLAGS_ARCH} _LIB )
442
444
foreach (path IN LISTS ${LFLAGS_ARCH} _LIB )
443
445
list (APPEND library_search_directories ${path} )
You can’t perform that action at this time.
0 commit comments