@@ -218,9 +218,9 @@ def buildProduct(self, product_name: str) -> None:
218
218
print ("** Building product " + product_name + " **" )
219
219
self .__build (PACKAGE_DIR , product_name , is_product = True )
220
220
221
- def buildTarget (self , target_name : str ) -> None :
221
+ def buildTarget (self , package_dir : str , target_name : str ) -> None :
222
222
print ("** Building target " + target_name + " **" )
223
- self .__build (PACKAGE_DIR , target_name , is_product = False )
223
+ self .__build (package_dir , target_name , is_product = False )
224
224
225
225
def buildExample (self , example_name : str ) -> None :
226
226
print ("** Building example " + example_name + " **" )
@@ -504,11 +504,8 @@ def build_command(args: argparse.Namespace) -> None:
504
504
verbose = args .verbose ,
505
505
disable_sandbox = args .disable_sandbox ,
506
506
)
507
- builder .buildTarget ("SwiftSyntax-all" )
508
-
509
- # Build examples
510
- builder .buildExample ("AddOneToIntegerLiterals" )
511
- builder .buildExample ("CodeGenerationUsingSwiftSyntaxBuilder" )
507
+ builder .buildTarget (PACKAGE_DIR , "SwiftSyntax-all" )
508
+ builder .buildTarget (EXAMPLES_DIR , "Examples-all" )
512
509
except subprocess .CalledProcessError as e :
513
510
fail_for_called_process_error ("Building SwiftSyntax failed" , e )
514
511
0 commit comments