@@ -341,9 +341,8 @@ option(SWIFT_TOOLS_LD64_LTO_CODEGEN_ONLY_FOR_SUPPORTING_TARGETS
341341 debugging Swift)"
342342 FALSE )
343343
344- option (BOOTSTRAPPING_MODE [=[
344+ set (BOOTSTRAPPING_MODE HOSTTOOLS CACHE STRING [=[
345345How to build the swift compiler modules. Possible values are
346- OFF: build without swift modules
347346 HOSTTOOLS: build with a pre-installed toolchain
348347 BOOTSTRAPPING: build with a 2-stage bootstrapping process
349348 BOOTSTRAPPING-WITH-HOSTLIBS: build with a 2-stage bootstrapping process,
@@ -352,7 +351,7 @@ How to build the swift compiler modules. Possible values are
352351 `SWIFT_NATIVE_SWIFT_TOOLS_PATH` (non-Darwin only)
353352 CROSSCOMPILE-WITH-HOSTLIBS: build with a bootstrapping-with-hostlibs compiled
354353 compiler, provided in `SWIFT_NATIVE_SWIFT_TOOLS_PATH`
355- ]=] OFF )
354+ ]=])
356355
357356option (BRIDGING_MODE [=[
358357How swift-C++ bridging code is compiled:
@@ -751,18 +750,6 @@ option(SWIFT_ENABLE_BACKTRACING
751750set (SWIFT_DARWIN_DEPLOYMENT_VERSION_MACCATALYST "14.5" CACHE STRING
752751 "Minimum deployment target version for macCatalyst" )
753752
754- # A tempoarary hack: force enabling HOSTTOOLS mode on Windows.
755- # Right now, SwiftCompilerSources cannot be enabled for lldb because on Windows
756- # swift and lldb are built in a unified build and there is a missing dependency
757- # on swiftrt.
758- # Swift and lldb are configured with the same cmake invocation and therefore
759- # enabling bootstrapping for swift and disabling it for lldb only works by
760- # hardcoding the bootstrapping mode in the cmake file.
761- # https://github.com/apple/swift/issues/73322
762- if (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
763- set (BOOTSTRAPPING_MODE "HOSTTOOLS" )
764- endif ()
765-
766753#
767754# End of user-configurable options.
768755#
@@ -925,6 +912,10 @@ set(SWIFT_MAIN_INCLUDE_DIR "${SWIFT_SOURCE_DIR}/include")
925912set (SWIFT_SHIMS_INCLUDE_DIR "${SWIFT_SOURCE_DIR} /stdlib/public/SwiftShims" )
926913set (SWIFT_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR} /include" )
927914
915+ if (NOT BOOTSTRAPPING_MODE)
916+ message (FATAL_ERROR "turning off bootstrapping is not supported anymore" )
917+ endif ()
918+
928919set (SWIFT_RUNTIME_OUTPUT_INTDIR "${CMAKE_BINARY_DIR} /${CMAKE_CFG_INTDIR} /bin" )
929920set (SWIFT_LIBRARY_OUTPUT_INTDIR "${CMAKE_BINARY_DIR} /${CMAKE_CFG_INTDIR} /lib" )
930921if ("${SWIFT_NATIVE_SWIFT_TOOLS_PATH} " STREQUAL "" )
0 commit comments