Skip to content

Commit

Permalink
- experiment: replace -resource-dir with -sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
eeckstein committed Apr 26, 2024
1 parent 022aab9 commit b5c4457
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SwiftCompilerSources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,12 @@ function(add_swift_compiler_modules_library name)
"(.*)/Toolchains/([^+]*).*"
"\\1/Platforms/\\2/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift"
resource_dir "${ALS_SWIFT_EXEC}")
list(APPEND sdk_option "-resource-dir" "${resource_dir}")

# Workaround a crash in the LoadableByAddress pass
# https://github.com/apple/swift/issues/73254
list(APPEND swift_compile_options "-Xllvm" "-sil-disable-pass=loadable-address")

list(APPEND sdk_option "-sdk" "${SWIFT_PATH_TO_SWIFT_SDK}")
list(APPEND swift_compile_options "-v" "-Xcc" "-v")
else()
list(APPEND sdk_option "-I" "${swift_exec_bin_dir}/../lib" "-I" "${sdk_path}/usr/lib")
Expand Down

0 comments on commit b5c4457

Please sign in to comment.