Skip to content

Commit 9dbdd0c

Browse files
committed
Disable SwiftCompilerSources for Windows ARM64.
This fixes the Windows ARM64 toolchain segfault issue in the official build: https://download.swift.org/development/windows10-arm64/swift-DEVELOPMENT-SNAPSHOT-2024-06-03-a/swift-DEVELOPMENT-SNAPSHOT-2024-06-03-a-windows10-arm64.exe
1 parent 76d5dd4 commit 9dbdd0c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,12 @@ if (NOT BOOTSTRAPPING_MODE)
923923
message(FATAL_ERROR "turning off bootstrapping is not supported anymore")
924924
endif()
925925

926+
# As a temporary workaround, disable SwiftCompilerSources on
927+
# Windows/ARM64 because the compiler segfaults
928+
if(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64")
929+
set(BOOTSTRAPPING_MODE "OFF")
930+
endif()
931+
926932
set(SWIFT_RUNTIME_OUTPUT_INTDIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin")
927933
set(SWIFT_LIBRARY_OUTPUT_INTDIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib")
928934
if("${SWIFT_NATIVE_SWIFT_TOOLS_PATH}" STREQUAL "")

0 commit comments

Comments
 (0)