Skip to content

Commit 979e852

Browse files
committed
Address Python lint and testing issues
1 parent 375ead3 commit 979e852

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

utils/swift_build_support/swift_build_support/products/swift.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from . import product
2121
from ..cmake import CMakeOptions
2222

23+
2324
class Swift(product.Product):
2425

2526
def __init__(self, args, toolchain, source_dir, build_dir):
@@ -174,7 +175,7 @@ def _enable_experimental_distributed(self):
174175

175176
@property
176177
def _early_swiftsyntax_flags(self):
177-
result=[]
178+
result = []
178179
if self.args.build_early_swiftsyntax:
179180
build_root = os.path.dirname(self.build_dir)
180181
early_swiftsyntax_build_dir = os.path.join(
@@ -211,11 +212,8 @@ def _swift_tools_ld64_lto_codegen_only_for_supporting_targets(self):
211212

212213
@classmethod
213214
def get_dependencies(cls):
214-
deps = [cmark.CMark,
215+
return [cmark.CMark,
215216
earlyswiftdriver.EarlySwiftDriver,
217+
earlyswiftsyntax.EarlySwiftSyntax,
216218
llvm.LLVM,
217219
libcxx.LibCXX]
218-
if self.args.build_early_swiftsyntax:
219-
deps.append(earlyswiftsyntax.EarlySwiftSyntax)
220-
221-
return deps

utils/swift_build_support/tests/products/test_swift.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def setUp(self):
5656
enable_experimental_differentiable_programming=False,
5757
enable_experimental_concurrency=False,
5858
enable_experimental_distributed=False,
59+
build_early_swiftsyntax=False,
5960
build_swift_stdlib_static_print=False,
6061
build_swift_stdlib_unicode_data=True,
6162
swift_freestanding_is_darwin=False,

0 commit comments

Comments
 (0)