We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 90d7da8 + c94e2a1 commit 16b20caCopy full SHA for 16b20ca
cmake/modules/AddSwift.cmake
@@ -260,8 +260,12 @@ function(_add_variant_swift_compile_flags
260
sdk arch build_type enable_assertions result_var_name)
261
set(result ${${result_var_name}})
262
263
+ # On Windows, we don't set SWIFT_SDK_WINDOWS_PATH, so don't include it.
264
+ if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
265
+ list(APPEND result "-sdk" "${SWIFT_SDK_${sdk}_PATH}")
266
+ endif()
267
+
268
list(APPEND result
- "-sdk" "${SWIFT_SDK_${sdk}_PATH}"
269
"-target" "${SWIFT_SDK_${sdk}_ARCH_${arch}_TRIPLE}"
270
"-resource-dir" "${SWIFTLIB_DIR}")
271
0 commit comments