File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -362,14 +362,14 @@ function(_compile_swift_files
362
362
)
363
363
364
364
# Determine the subdirectory where the binary should be placed.
365
- compute_library_subdir (library_subdir
366
- "${SWIFTFILE_SDK} " "${SWIFTFILE_ARCHITECTURE} " )
367
-
365
+ set (library_subdir_sdk "${SWIFTFILE_SDK} " )
368
366
if (maccatalyst_build_flavor STREQUAL "ios-like" )
369
- compute_library_subdir (library_subdir
370
- "MACCATALYST" "${SWIFTFILE_ARCHITECTURE} " )
367
+ set (library_subdir_sdk "MACCATALYST" )
371
368
endif ()
372
369
370
+ compute_library_subdir (library_subdir
371
+ "${library_subdir_sdk} " "${SWIFTFILE_ARCHITECTURE} " )
372
+
373
373
# If we have a custom module cache path, use it.
374
374
if (SWIFT_MODULE_CACHE_PATH )
375
375
list (APPEND swift_flags "-module-cache-path" "${SWIFT_MODULE_CACHE_PATH} " )
@@ -464,7 +464,7 @@ function(_compile_swift_files
464
464
list (APPEND swift_flags "-parse-as-library" )
465
465
466
466
set (module_base "${module_dir} /${SWIFTFILE_MODULE_NAME} " )
467
- set (module_triple ${SWIFT_SDK_${SWIFTFILE_SDK }_ARCH_${SWIFTFILE_ARCHITECTURE}_MODULE} )
467
+ set (module_triple ${SWIFT_SDK_${library_subdir_sdk }_ARCH_${SWIFTFILE_ARCHITECTURE}_MODULE} )
468
468
if (SWIFTFILE_SDK IN_LIST SWIFT_APPLE_PLATFORMS OR
469
469
SWIFTFILE_SDK STREQUAL "MACCATALYST" )
470
470
set (specific_module_dir "${module_base} .swiftmodule" )
You can’t perform that action at this time.
0 commit comments