@@ -114,10 +114,10 @@ class HostSpecificConfiguration(object):
114
114
continue
115
115
116
116
# Compute which actions are desired.
117
- build = deployment_platform not in \
118
- invocation .platforms_to_skip_build
119
- test = deployment_platform not in \
120
- invocation .platforms_to_skip_test
117
+ build = (
118
+ deployment_platform not in invocation .platforms_to_skip_build )
119
+ test = (
120
+ deployment_platform not in invocation .platforms_to_skip_test )
121
121
test_host_only = None
122
122
build_benchmark = build and deployment_target .supports_benchmark
123
123
# FIXME: Note, `build-script-impl` computed a property here
@@ -448,7 +448,8 @@ class BuildScriptInvocation(object):
448
448
if args .skip_test_ios_host :
449
449
self .platforms_to_skip_test .add (StdlibDeploymentTarget .iOS )
450
450
if args .skip_test_ios_simulator :
451
- self .platforms_to_skip_test .add (StdlibDeploymentTarget .iOSSimulator )
451
+ self .platforms_to_skip_test .add (
452
+ StdlibDeploymentTarget .iOSSimulator )
452
453
if args .skip_test_tvos_host :
453
454
self .platforms_to_skip_test .add (StdlibDeploymentTarget .AppleTV )
454
455
if args .skip_test_tvos_simulator :
@@ -469,7 +470,8 @@ class BuildScriptInvocation(object):
469
470
if args .skip_test_ios_host :
470
471
self .platforms_to_skip_test_host .add (StdlibDeploymentTarget .iOS )
471
472
if args .skip_test_tvos_host :
472
- self .platforms_to_skip_test_host .add (StdlibDeploymentTarget .AppleTV )
473
+ self .platforms_to_skip_test_host .add (
474
+ StdlibDeploymentTarget .AppleTV )
473
475
if args .skip_test_watchos_host :
474
476
self .platforms_to_skip_test_host .add (
475
477
StdlibDeploymentTarget .AppleWatch )
@@ -752,12 +754,12 @@ class BuildScriptInvocation(object):
752
754
args = self .args
753
755
754
756
options = {}
755
- for host in [args .host_target ] + args .cross_compile_hosts :
757
+ for host_target in [args .host_target ] + args .cross_compile_hosts :
756
758
# Compute the host specific configuration.
757
- config = HostSpecificConfiguration (host , self )
759
+ config = HostSpecificConfiguration (host_target , self )
758
760
759
761
# Convert into `build-script-impl` style variables.
760
- options [host ] = {
762
+ options [host_target ] = {
761
763
"SWIFT_SDKS" : " " .join (sorted (
762
764
config .sdks_to_configure )),
763
765
"SWIFT_STDLIB_TARGETS" : " " .join (
@@ -1794,7 +1796,7 @@ details of the setups of other systems or automated environments.""")
1794
1796
invocation .build_ninja ()
1795
1797
1796
1798
# Convert to a build-script-impl invocation.
1797
- (build_script_impl_env ,build_script_impl_args ) = \
1799
+ (build_script_impl_env , build_script_impl_args ) = \
1798
1800
invocation .convert_to_impl_arguments ()
1799
1801
1800
1802
# Execute the underlying build script implementation.
0 commit comments