@@ -405,9 +405,9 @@ set(SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY
405
405
406
406
407
407
if (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))
409
409
# 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.
411
411
# If the host Swift version is less than 5.8, use pure mode to workaround a C++ interop compiler crash.
412
412
set (BRIDGING_MODE "PURE" )
413
413
else ()
@@ -864,7 +864,7 @@ endif()
864
864
865
865
if (SWIFT_BUILD_SWIFT_SYNTAX)
866
866
# 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" )
868
868
message (WARNING "Force setting BOOTSTRAPPING=HOSTTOOLS because Swift parser integration is enabled" )
869
869
set (BOOTSTRAPPING_MODE "HOSTTOOLS" )
870
870
endif ()
@@ -1194,6 +1194,7 @@ if(SWIFT_INCLUDE_TOOLS)
1194
1194
message (STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS} " )
1195
1195
message (STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO} " )
1196
1196
message (STATUS " Bootstrapping: ${BOOTSTRAPPING_MODE} " )
1197
+ message (STATUS " C++ Bridging: ${BRIDGING_MODE} " )
1197
1198
message (STATUS " Swift parser: ${SWIFT_BUILD_SWIFT_SYNTAX} " )
1198
1199
message (STATUS "" )
1199
1200
else ()
0 commit comments