File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -434,10 +434,11 @@ def __init__(
434
434
self .verbose = verbose
435
435
self .toolchain = toolchain
436
436
437
- def build (self , product_name : str ) -> None :
438
- print ("** Building " + product_name + " **" )
437
+ def build (self , product_name : Optional [ str ] = None ) -> None :
438
+ print ("** Building " + ( product_name or "all products" ) + " **" )
439
439
command = list (self .swiftpm_call )
440
- command .extend (["--product" , product_name ])
440
+ if product_name :
441
+ command .extend (["--product" , product_name ])
441
442
442
443
env = dict (os .environ )
443
444
env ["SWIFT_BUILD_SCRIPT_ENVIRONMENT" ] = "1"
@@ -761,12 +762,8 @@ def build_command(args: argparse.Namespace) -> None:
761
762
verbose = args .verbose ,
762
763
disable_sandbox = args .disable_sandbox ,
763
764
)
764
- # Until rdar://53881101 is implemented, we cannot request a build of multiple
765
- # targets simultaneously. For now, just build one product after the other.
766
- builder .build ("SwiftSyntax" )
767
- builder .build ("SwiftSyntaxParser" )
768
- builder .build ("SwiftSyntaxBuilder" )
769
- builder .build ("SwiftSyntaxBuilderGeneration" )
765
+ # Build all products.
766
+ builder .build ()
770
767
except subprocess .CalledProcessError as e :
771
768
fail_for_called_process_error ("Building SwiftSyntax failed" , e )
772
769
You can’t perform that action at this time.
0 commit comments