@@ -405,9 +405,9 @@ set(SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY
405405
406406
407407if (BRIDGING_MODE STREQUAL "DEFAULT" OR NOT BRIDGING_MODE)
408- 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))
408+ 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))
409409 # In debug builds, to workaround a problem with LLDB's `po` command (rdar://115770255).
410- # On windows to workaround a build problem.
410+ # On Windows and Android, to workaround a build problem.
411411 # If the host Swift version is less than 5.8, use pure mode to workaround a C++ interop compiler crash.
412412 set (BRIDGING_MODE "PURE" )
413413 else ()
@@ -864,7 +864,7 @@ endif()
864864
865865if (SWIFT_BUILD_SWIFT_SYNTAX)
866866 # Only "HOSTTOOLS" is supported in Linux when Swift parser integration is enabled.
867- if (SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID| OPENBSD|FREEBSD" AND NOT BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" )
867+ if (SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|OPENBSD|FREEBSD" AND NOT BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" )
868868 message (WARNING "Force setting BOOTSTRAPPING=HOSTTOOLS because Swift parser integration is enabled" )
869869 set (BOOTSTRAPPING_MODE "HOSTTOOLS" )
870870 endif ()
@@ -1194,6 +1194,7 @@ if(SWIFT_INCLUDE_TOOLS)
11941194 message (STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS} " )
11951195 message (STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO} " )
11961196 message (STATUS " Bootstrapping: ${BOOTSTRAPPING_MODE} " )
1197+ message (STATUS " C++ Bridging: ${BRIDGING_MODE} " )
11971198 message (STATUS " Swift parser: ${SWIFT_BUILD_SWIFT_SYNTAX} " )
11981199 message (STATUS "" )
11991200else ()
0 commit comments