@@ -401,9 +401,9 @@ set(SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY
401401
402402
403403if (BRIDGING_MODE STREQUAL "DEFAULT" OR NOT BRIDGING_MODE)
404- if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR "${CMAKE_SYSTEM_NAME } " STREQUAL "Windows " OR (CMAKE_Swift_COMPILER AND CMAKE_Swift_COMPILER_VERSION VERSION_LESS 5.8))
404+ if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR "${SWIFT_HOST_VARIANT_SDK } " MATCHES "WINDOWS|ANDROID " OR (CMAKE_Swift_COMPILER AND CMAKE_Swift_COMPILER_VERSION VERSION_LESS 5.8))
405405 # In debug builds, to workaround a problem with LLDB's `po` command (rdar://115770255).
406- # On windows to workaround a build problem.
406+ # On Windows and Android, to workaround a build problem.
407407 # If the host Swift version is less than 5.8, use pure mode to workaround a C++ interop compiler crash.
408408 set (BRIDGING_MODE "PURE" )
409409 else ()
@@ -868,7 +868,7 @@ endif()
868868
869869if (SWIFT_BUILD_SWIFT_SYNTAX)
870870 # Only "HOSTTOOLS" is supported in Linux when Swift parser integration is enabled.
871- if (SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID| OPENBSD|FREEBSD" AND NOT BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" )
871+ if (SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|OPENBSD|FREEBSD" AND NOT BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" )
872872 message (WARNING "Force setting BOOTSTRAPPING=HOSTTOOLS because Swift parser integration is enabled" )
873873 set (BOOTSTRAPPING_MODE "HOSTTOOLS" )
874874 endif ()
@@ -1199,6 +1199,7 @@ if(SWIFT_INCLUDE_TOOLS)
11991199 message (STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS} " )
12001200 message (STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO} " )
12011201 message (STATUS " Bootstrapping: ${BOOTSTRAPPING_MODE} " )
1202+ message (STATUS " C++ Bridging: ${BRIDGING_MODE} " )
12021203 message (STATUS " Swift parser: ${SWIFT_BUILD_SWIFT_SYNTAX} " )
12031204 message (STATUS "" )
12041205else ()
0 commit comments