Skip to content

Commit 6e2357e

Browse files
committed
---
yaml --- r: 348013 b: refs/heads/master c: 6a94950 h: refs/heads/master i: 348011: 6071ff2
1 parent 6a37eca commit 6e2357e

File tree

5 files changed

+36
-8
lines changed

5 files changed

+36
-8
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: dbf353eeb2ce2fc7a2060c3454fb9fb9e7f17c77
2+
refs/heads/master: 6a94950214f9a3e6cc05d1bae7efba77586f9456
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,10 @@ function(_add_variant_link_flags)
465465
set(android_libcxx_path "${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a")
466466
elseif("${LFLAGS_ARCH}" MATCHES aarch64)
467467
set(android_libcxx_path "${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++/libs/arm64-v8a")
468+
elseif("${LFLAGS_ARCH}" MATCHES i686)
469+
set(android_libcxx_path "${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++/libs/x86")
470+
elseif("${LFLAGS_ARCH}" MATCHES x86_64)
471+
set(android_libcxx_path "${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++/libs/x86_64")
468472
else()
469473
message(SEND_ERROR "unknown architecture (${LFLAGS_ARCH}) for android")
470474
endif()

trunk/cmake/modules/SwiftAndroidSupport.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ function(swift_android_lib_for_arch arch var)
2323
list(APPEND paths "${_prebuilt}/${_host}/lib/armv7-a")
2424
elseif(arch STREQUAL aarch64)
2525
list(APPEND paths "${_prebuilt}/${_host}/lib64")
26+
elseif(arch STREQUAL i686)
27+
list(APPEND paths "${_prebuilt}/${_host}/lib")
28+
elseif(arch STREQUAL x86_64)
29+
list(APPEND paths "${_prebuilt}/${_host}/lib64")
2630
else()
2731
message(SEND_ERROR "unknown architecture (${arch}) for android")
2832
endif()

trunk/cmake/modules/SwiftConfigureSDK.cmake

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,16 @@ macro(configure_sdk_unix name architectures)
186186
set(SWIFT_SDK_ANDROID_ARCH_${arch}_ALT_SPELLING "aarch64")
187187
set(SWIFT_SDK_ANDROID_ARCH_${arch}_PATH "${SWIFT_ANDROID_NDK_PATH}/platforms/android-${SWIFT_ANDROID_API_LEVEL}/arch-arm64")
188188
set(SWIFT_SDK_ANDROID_ARCH_${arch}_TRIPLE "aarch64-unknown-linux-android")
189+
elseif("${arch}" STREQUAL "i686")
190+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_TRIPLE "i686-linux-android")
191+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_ALT_SPELLING "i686")
192+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_PATH "${SWIFT_ANDROID_NDK_PATH}/platforms/android-${SWIFT_ANDROID_API_LEVEL}/arch-x86")
193+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_TRIPLE "i686-unknown-linux-android")
194+
elseif("${arch}" STREQUAL "x86_64")
195+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_TRIPLE "x86_64-linux-android")
196+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_ALT_SPELLING "x86_64")
197+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_PATH "${SWIFT_ANDROID_NDK_PATH}/platforms/android-${SWIFT_ANDROID_API_LEVEL}/arch-x86_64")
198+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_TRIPLE "x86_64-unknown-linux-android")
189199
else()
190200
message(FATAL_ERROR "unknown arch for android SDK: ${arch}")
191201
endif()
@@ -196,8 +206,16 @@ macro(configure_sdk_unix name architectures)
196206
elseif("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Linux")
197207
set(_swift_android_prebuilt_build "linux-x86_64")
198208
endif()
199-
set(SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_PREBUILT_PATH
209+
if("${arch}" STREQUAL "i686")
210+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_PREBUILT_PATH
211+
"${SWIFT_ANDROID_NDK_PATH}/toolchains/x86-${SWIFT_ANDROID_NDK_GCC_VERSION}/prebuilt/${_swift_android_prebuilt_build}")
212+
elseif("${arch}" STREQUAL "x86_64")
213+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_PREBUILT_PATH
214+
"${SWIFT_ANDROID_NDK_PATH}/toolchains/x86_64-${SWIFT_ANDROID_NDK_GCC_VERSION}/prebuilt/${_swift_android_prebuilt_build}")
215+
else()
216+
set(SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_PREBUILT_PATH
200217
"${SWIFT_ANDROID_NDK_PATH}/toolchains/${SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_TRIPLE}-${SWIFT_ANDROID_NDK_GCC_VERSION}/prebuilt/${_swift_android_prebuilt_build}")
218+
endif()
201219
else()
202220
if(NOT SWIFT_SDK_${prefix}_ARCH_${arch}_PATH)
203221
set(SWIFT_SDK_${prefix}_ARCH_${arch}_PATH "/")

trunk/test/lit.cfg

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,12 +1338,13 @@ rth_flags = ''
13381338
if swift_execution_tests_extra_flags:
13391339
rth_flags = swift_execution_tests_extra_flags + ' -wmo'
13401340

1341+
# FIXME: why can we not use %rth and have that be expanded out?
13411342
config.target_resilience_test = (
1342-
'%s --target-build-swift "%s" --target-run "%s" --t %%t --S %%S --s %%s '
1343-
'--lib-prefix "%s" --lib-suffix "%s" --target-codesign "%s" '
1343+
'%r %s --target-build-swift "%s" --target-run "%s" --t %%t --S %%S '
1344+
'--s %%s --lib-prefix "%s" --lib-suffix "%s" --target-codesign "%s" '
13441345
'--additional-compile-flags "%s" --triple "%s"'
1345-
% (config.rth, config.target_build_swift, config.target_run,
1346-
config.target_shared_library_prefix,
1346+
% (sys.executable, config.rth, config.target_build_swift,
1347+
config.target_run, config.target_shared_library_prefix,
13471348
config.target_shared_library_suffix, config.target_codesign,
13481349
rth_flags, config.variant_triple))
13491350

@@ -1490,8 +1491,9 @@ config.substitutions.append(('%round-trip-syntax-test',
14901491
config.round_trip_syntax_test)))
14911492
config.substitutions.append(('%rth', '%r %s' % (sys.executable, config.rth)))
14921493
config.substitutions.append(('%scale-test',
1493-
'{} --swiftc-binary={} --tmpdir=%t'.format(
1494-
config.scale_test, config.swiftc)))
1494+
'{} {} --swiftc-binary={} --tmpdir=%t'.format(
1495+
sys.executable, config.scale_test,
1496+
config.swiftc)))
14951497
config.substitutions.append(('%empty-directory\(([^)]+)\)',
14961498
SubstituteCaptures(r'rm -rf "\1" && mkdir -p "\1"')))
14971499

0 commit comments

Comments
 (0)