Skip to content

Commit 338dd18

Browse files
committed
SwiftCompilerSources: workaround a crash in the LoadableByAddress pass when building on Windows
1 parent 7bf193e commit 338dd18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SwiftCompilerSources/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ function(add_swift_compiler_modules_library name)
172172
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
173173
list(APPEND swift_compile_options "-static")
174174
list(APPEND sdk_option "-sdk" "${SWIFT_PATH_TO_SWIFT_SDK}")
175+
176+
# Workaround a crash in the LoadableByAddress pass
177+
# https://github.com/apple/swift/issues/73254
178+
list(APPEND swift_compile_options "-Xllvm" "-sil-disable-pass=loadable-address")
175179
else()
176180
list(APPEND sdk_option "-I" "${swift_exec_bin_dir}/../lib" "-I" "${sdk_path}/usr/lib")
177181
endif()

0 commit comments

Comments
 (0)