Skip to content

Commit 40c1949

Browse files
committed
---
yaml --- r: 317055 b: refs/heads/master-rebranch c: 7c4b176 h: refs/heads/master i: 317053: f16a2a6 317051: ad3475c 317047: 944d3e3 317039: 9eb2d21 317023: a8dd3a5 316991: 68e5d23 316927: b8f4d48
1 parent 3b9236f commit 40c1949

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,4 +1457,4 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14571457
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14581458
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14591459
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1460-
refs/heads/master-rebranch: 20393bcc954110244b763f811f1ba6616775a8c1
1460+
refs/heads/master-rebranch: 7c4b1768e8028b252b0e252091243800b266f558

branches/master-rebranch/cmake/modules/AddSwift.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,9 @@ function(_add_variant_c_compile_flags)
298298
endif()
299299

300300
if("${CFLAGS_SDK}" STREQUAL "ANDROID")
301+
swift_android_libcxx_include_paths(CFLAGS_CXX_INCLUDES)
301302
swift_android_include_for_arch("${CFLAGS_ARCH}" "${CFLAGS_ARCH}_INCLUDE")
302-
foreach(path IN LISTS ${CFLAGS_ARCH}_INCLUDE)
303+
foreach(path IN LISTS CFLAGS_CXX_INCLUDES ${CFLAGS_ARCH}_INCLUDE)
303304
list(APPEND result "\"${CMAKE_INCLUDE_FLAG_C}${path}\"")
304305
endforeach()
305306
list(APPEND result "-D__ANDROID_API__=${SWIFT_ANDROID_API_LEVEL}")

branches/master-rebranch/cmake/modules/SwiftAndroidSupport.cmake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
function(swift_android_libcxx_include_paths var)
2+
set(${var}
3+
"${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++/include"
4+
"${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++abi/include"
5+
PARENT_SCOPE)
6+
endfunction()
7+
18
function(swift_android_include_for_arch arch var)
29
set(paths)
310
list(APPEND paths
4-
"${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++/include"
5-
"${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++abi/include"
611
"${SWIFT_ANDROID_NDK_PATH}/sources/android/support/include"
712
"${SWIFT_ANDROID_NDK_PATH}/sysroot/usr/include"
813
"${SWIFT_ANDROID_NDK_PATH}/sysroot/usr/include/${SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_TRIPLE}")

0 commit comments

Comments
 (0)