We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06f3c11 + b3b0d87 commit 1c07ab4Copy full SHA for 1c07ab4
cmake/modules/AddSwift.cmake
@@ -430,6 +430,9 @@ function(_add_variant_link_flags)
430
list(APPEND result "-Wl,-Bsymbolic")
431
elseif("${LFLAGS_SDK}" STREQUAL "ANDROID")
432
list(APPEND link_libraries "dl" "log" "atomic" "icudataswift" "icui18nswift" "icuucswift")
433
+ # We provide our own C++ below, so we ask the linker not to do it. However,
434
+ # we need to add the math library, which is linked implicitly by libc++.
435
+ list(APPEND result "-nostdlib++" "-lm")
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")
438
elseif("${LFLAGS_ARCH}" MATCHES aarch64)
0 commit comments