File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -354,16 +354,15 @@ def apply_default_arguments(toolchain, args):
354
354
355
355
# Filter out any macOS stdlib deployment targets that are not supported
356
356
# by the macOS SDK.
357
- if platform .system () == "Darwin" :
358
- targets = StdlibDeploymentTarget .get_targets_by_name (
359
- args .stdlib_deployment_targets )
360
- args .stdlib_deployment_targets = [
361
- target .name
362
- for target in targets
363
- if (target .platform .is_darwin and
364
- target .platform .sdk_supports_architecture (
365
- target .arch , args .darwin_xcrun_toolchain ))
366
- ]
357
+ targets = StdlibDeploymentTarget .get_targets_by_name (
358
+ args .stdlib_deployment_targets )
359
+ args .stdlib_deployment_targets = [
360
+ target .name
361
+ for target in targets
362
+ if (not target .platform .is_darwin or
363
+ target .platform .sdk_supports_architecture (
364
+ target .arch , args .darwin_xcrun_toolchain ))
365
+ ]
367
366
368
367
# Include the Darwin module-only architectures in the CMake options.
369
368
if args .swift_darwin_module_archs :
You can’t perform that action at this time.
0 commit comments