Skip to content

Commit 8777a87

Browse files
authored
Merge pull request #29502 from drodriguez/android-escape-include-paths-correctly
[android] Escape include paths in Android.
2 parents c662a91 + 3e42a0f commit 8777a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ function(_add_variant_c_compile_flags)
363363
swift_android_libcxx_include_paths(CFLAGS_CXX_INCLUDES)
364364
swift_android_include_for_arch("${CFLAGS_ARCH}" "${CFLAGS_ARCH}_INCLUDE")
365365
foreach(path IN LISTS CFLAGS_CXX_INCLUDES ${CFLAGS_ARCH}_INCLUDE)
366-
list(APPEND result -isystem;${path})
366+
list(APPEND result "SHELL:${CMAKE_INCLUDE_SYSTEM_FLAG_C}${path}")
367367
endforeach()
368368
list(APPEND result "-D__ANDROID_API__=${SWIFT_ANDROID_API_LEVEL}")
369369
elseif(CFLAGS_SDK STREQUAL WINDOWS)

0 commit comments

Comments
 (0)