Skip to content

Commit 9b4a890

Browse files
committed
[Utils] Attempt to appease python_lint
1 parent 0824210 commit 9b4a890

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

utils/build-script

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,10 @@ class BuildScriptInvocation(object):
598598

599599
# Enable macCatalyst
600600
if args.maccatalyst:
601-
args.extra_cmake_options.append('-DSWIFT_ENABLE_MACCATALYST:BOOL=TRUE')
601+
(args.extra_cmake_options
602+
.append('-DSWIFT_ENABLE_MACCATALYST:BOOL=TRUE'))
602603
if args.maccatalyst_ios_tests:
603-
impl_args += [ "--darwin-test-maccatalyst-ios-like=1" ]
604+
impl_args += ["--darwin-test-maccatalyst-ios-like=1"]
604605

605606
# If we have extra_cmake_options, combine all of them together and then
606607
# add them as one command.

utils/build_swift/build_swift/driver_arguments.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ def create_argument_parser():
339339
help='Enable building Swift with macCatalyst support')
340340

341341
option('--maccatalyst-ios-tests', toggle_true,
342-
help='When building for macCatalyst run tests with iOS-like target triple')
342+
help='When building for macCatalyst run tests with iOS-like '
343+
'target triple')
343344

344345
option('--android', toggle_true,
345346
help='also build for Android')

utils/swift_build_support/swift_build_support/host_specific_configuration.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,15 @@ def __init__(self, host_target, args):
152152

153153
# Support for running the macCatalyst tests with
154154
# the iOS-like target triple.
155-
if name == "macosx-x86_64" and args.maccatalyst and args.maccatalyst_ios_tests:
156-
self.swift_test_run_targets.append("check-swift{}{}-{}".format(
157-
subset_suffix, suffix, "macosx-maccatalyst-x86_64"))
155+
if name == "macosx-x86_64" and args.maccatalyst \
156+
and args.maccatalyst_ios_tests:
157+
(self.swift_test_run_targets
158+
.append("check-swift{}{}-{}".format(
159+
subset_suffix, suffix, "macosx-maccatalyst-x86_64")))
158160
else:
159-
self.swift_test_run_targets.append("check-swift{}{}-{}".format(
160-
subset_suffix, suffix, name))
161+
(self.swift_test_run_targets
162+
.append("check-swift{}{}-{}".format(
163+
subset_suffix, suffix, name)))
161164
if args.test_optimized and not test_host_only:
162165
self.swift_test_run_targets.append(
163166
"check-swift{}-optimize-{}".format(

0 commit comments

Comments
 (0)