Skip to content

Commit

Permalink
Merge pull request #29502 from drodriguez/android-escape-include-path…
Browse files Browse the repository at this point in the history
…s-correctly

[android] Escape include paths in Android.
  • Loading branch information
drodriguez authored Jan 28, 2020
2 parents c662a91 + 3e42a0f commit 8777a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ function(_add_variant_c_compile_flags)
swift_android_libcxx_include_paths(CFLAGS_CXX_INCLUDES)
swift_android_include_for_arch("${CFLAGS_ARCH}" "${CFLAGS_ARCH}_INCLUDE")
foreach(path IN LISTS CFLAGS_CXX_INCLUDES ${CFLAGS_ARCH}_INCLUDE)
list(APPEND result -isystem;${path})
list(APPEND result "SHELL:${CMAKE_INCLUDE_SYSTEM_FLAG_C}${path}")
endforeach()
list(APPEND result "-D__ANDROID_API__=${SWIFT_ANDROID_API_LEVEL}")
elseif(CFLAGS_SDK STREQUAL WINDOWS)
Expand Down

0 comments on commit 8777a87

Please sign in to comment.