@@ -401,9 +401,9 @@ set(SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY
401
401
402
402
403
403
if (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))
405
405
# 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.
407
407
# If the host Swift version is less than 5.8, use pure mode to workaround a C++ interop compiler crash.
408
408
set (BRIDGING_MODE "PURE" )
409
409
else ()
@@ -868,7 +868,7 @@ endif()
868
868
869
869
if (SWIFT_BUILD_SWIFT_SYNTAX)
870
870
# 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" )
872
872
message (WARNING "Force setting BOOTSTRAPPING=HOSTTOOLS because Swift parser integration is enabled" )
873
873
set (BOOTSTRAPPING_MODE "HOSTTOOLS" )
874
874
endif ()
@@ -1199,6 +1199,7 @@ if(SWIFT_INCLUDE_TOOLS)
1199
1199
message (STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS} " )
1200
1200
message (STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO} " )
1201
1201
message (STATUS " Bootstrapping: ${BOOTSTRAPPING_MODE} " )
1202
+ message (STATUS " C++ Bridging: ${BRIDGING_MODE} " )
1202
1203
message (STATUS " Swift parser: ${SWIFT_BUILD_SWIFT_SYNTAX} " )
1203
1204
message (STATUS "" )
1204
1205
else ()
0 commit comments