Skip to content

Commit b569328

Browse files
committed
SwiftCompilerSources: workaround a crash in the LoadableByAddress pass when building on Windows
1 parent ec2682e commit b569328

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
@@ -179,6 +179,10 @@ function(add_swift_compiler_modules_library name)
179179
"\\1/Platforms/\\2/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift"
180180
resource_dir "${ALS_SWIFT_EXEC}")
181181
list(APPEND sdk_option "-resource-dir" "${resource_dir}")
182+
183+
# Workaround a crash in the LoadableByAddress pass
184+
# https://github.com/apple/swift/issues/73254
185+
list(APPEND swift_compile_options "-Xllvm" "-sil-disable-pass=loadable-address")
182186
else()
183187
list(APPEND sdk_option "-I" "${swift_exec_bin_dir}/../lib" "-I" "${sdk_path}/usr/lib")
184188
endif()

0 commit comments

Comments
 (0)