Skip to content

Commit 5a55deb

Browse files
committed
Build dependencies in reverse dependency order
1 parent 69a8ff7 commit 5a55deb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Utilities/build-script-helper.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ def handle_invocation(swift_exec: str, args: argparse.Namespace) -> None:
155155
Depending on the action in 'args', build the package or run tests.
156156
"""
157157
if args.action == 'build':
158-
products = ["IndexStoreDB", "IndexStoreDB_CXX", "ISDBTestSupport", "tibs"]
159-
for product in products:
158+
# These products are listed in dependency order. Lower-level targets are listed first.
159+
products = ["IndexStoreDB_CXX", "IndexStoreDB", "tibs", "ISDBTestSupport"]
160+
# Build in reverse dependency order so we can build lower-level targets in parallel.
161+
for product in reversed(products):
160162
build_single_product(product, swift_exec, args)
161163
elif args.action == 'test':
162164
run_tests(swift_exec, args)

0 commit comments

Comments
 (0)