Skip to content

Commit b948f20

Browse files
committed
build-script: keep SwiftDriver as the last product to build
1 parent 5e2bd57 commit b948f20

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

utils/build-script

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,8 +886,6 @@ class BuildScriptInvocation(object):
886886
product_classes = []
887887
if self.args.build_swiftpm:
888888
product_classes.append(products.SwiftPM)
889-
if self.args.build_swift_driver or self.args.install_swift_driver:
890-
product_classes.append(products.SwiftDriver)
891889
if self.args.build_swiftsyntax:
892890
product_classes.append(products.SwiftSyntax)
893891
if self.args.build_skstresstester:
@@ -908,6 +906,13 @@ class BuildScriptInvocation(object):
908906
product_classes.append(products.SwiftInspect)
909907
if self.args.tsan_libdispatch_test:
910908
product_classes.append(products.TSanLibDispatch)
909+
910+
# Keep SwiftDriver at last.
911+
# swift-driver's integration with the build scripts is not fully
912+
# supported. Using swift-driver to build these products may hit
913+
# failures.
914+
if self.args.build_swift_driver or self.args.install_swift_driver:
915+
product_classes.append(products.SwiftDriver)
911916
# Sanity check that all of our non-impl classes are actually
912917
# not build_script_impl products.
913918
for prod in product_classes:

0 commit comments

Comments
 (0)