Skip to content

Commit bf2c39d

Browse files
committed
---
yaml --- r: 348127 b: refs/heads/master c: e9141e3 h: refs/heads/master i: 348125: 572894c 348123: 14d43ca 348119: 15a8651 348111: 88d91f3 348095: 19c30ef
1 parent 32a4783 commit bf2c39d

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8084259bf3d601e96009da0a296099e555e7c202
2+
refs/heads/master: e9141e34c844a3fbd6631133f4232eaa52bcd4d2
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/cmake/modules/AddSwift.cmake

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,10 @@ function(_add_variant_link_flags)
462462
list(APPEND link_libraries "bsd" "atomic")
463463
list(APPEND result "-Wl,-Bsymbolic")
464464
elseif("${LFLAGS_SDK}" STREQUAL "ANDROID")
465-
list(APPEND link_libraries "dl" "log" "atomic" "icudataswift" "icui18nswift" "icuucswift")
465+
list(APPEND link_libraries "dl" "log" "atomic")
466466
# We need to add the math library, which is linked implicitly by libc++
467467
list(APPEND result "-lm")
468+
468469
if("${LFLAGS_ARCH}" MATCHES armv7)
469470
set(android_libcxx_path "${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a")
470471
elseif("${LFLAGS_ARCH}" MATCHES aarch64)
@@ -476,8 +477,17 @@ function(_add_variant_link_flags)
476477
else()
477478
message(SEND_ERROR "unknown architecture (${LFLAGS_ARCH}) for android")
478479
endif()
479-
list(APPEND link_libraries "${android_libcxx_path}/libc++abi.a")
480-
list(APPEND link_libraries "${android_libcxx_path}/libc++_shared.so")
480+
481+
# link against the custom C++ library
482+
list(APPEND link_libraries
483+
${android_libcxx_path}/libc++abi.a
484+
${android_libcxx_path}/libc++_shared.so)
485+
486+
# link against the ICU libraries
487+
list(APPEND link_libraries
488+
${SWIFT_ANDROID_${LFLAGS_ARCH}_ICU_I18N}
489+
${SWIFT_ANDROID_${LFLAGS_ARCH}_ICU_UC})
490+
481491
swift_android_lib_for_arch(${LFLAGS_ARCH} ${LFLAGS_ARCH}_LIB)
482492
foreach(path IN LISTS ${LFLAGS_ARCH}_LIB)
483493
list(APPEND library_search_directories ${path})

0 commit comments

Comments
 (0)