Skip to content

Commit d22aefa

Browse files
committed
Build dependencies in reverse dependency order
1 parent c785eba commit d22aefa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Utilities/build-script-helper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ def handle_invocation(swift_exec: str, args: argparse.Namespace) -> None:
236236
Depending on the action in 'args', build the package, installs the package or run tests.
237237
"""
238238
if args.action == 'build':
239-
products = ["sourcekit-lsp", "_SourceKitLSP", "LSPBindings"]
240-
for product in products:
239+
# These products are listed in dependency order. Lower-level targets are listed first.
240+
products = ["LSPBindings", "_SourceKitLSP", "sourcekit-lsp"]
241+
# Build in reverse dependency order so we can build lower-level targets in parallel.
242+
for product in reversed(products):
241243
build_single_product(product, swift_exec, args)
242244
elif args.action == 'test':
243245
run_tests(swift_exec, args)

0 commit comments

Comments
 (0)