Skip to content

Commit b5c4457

Browse files
committed
- experiment: replace -resource-dir with -sdk
1 parent 022aab9 commit b5c4457

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SwiftCompilerSources/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,12 @@ function(add_swift_compiler_modules_library name)
178178
"(.*)/Toolchains/([^+]*).*"
179179
"\\1/Platforms/\\2/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift"
180180
resource_dir "${ALS_SWIFT_EXEC}")
181-
list(APPEND sdk_option "-resource-dir" "${resource_dir}")
182181

183182
# Workaround a crash in the LoadableByAddress pass
184183
# https://github.com/apple/swift/issues/73254
185184
list(APPEND swift_compile_options "-Xllvm" "-sil-disable-pass=loadable-address")
185+
186+
list(APPEND sdk_option "-sdk" "${SWIFT_PATH_TO_SWIFT_SDK}")
186187
list(APPEND swift_compile_options "-v" "-Xcc" "-v")
187188
else()
188189
list(APPEND sdk_option "-I" "${swift_exec_bin_dir}/../lib" "-I" "${sdk_path}/usr/lib")

0 commit comments

Comments
 (0)