@@ -531,9 +531,11 @@ class BuildScriptInvocation(object):
531
531
# just invoke cmake from build-script directly rather than futzing
532
532
# with build-script-impl. This makes even more sense since there
533
533
# really isn't a security issue here.
534
- impl_args += [
535
- "--%s-cmake-options=%s" % (product_name , ' ' .join (cmake_opts ))
536
- ]
534
+ if cmake_opts :
535
+ impl_args += [
536
+ "--{}-cmake-options={}" .format (
537
+ product_name , ' ' .join (cmake_opts ))
538
+ ]
537
539
538
540
if args .build_stdlib_deployment_targets :
539
541
impl_args += [
@@ -844,16 +846,20 @@ class BuildScriptInvocation(object):
844
846
product_classes .append (products .Swift )
845
847
if self .args .build_lldb :
846
848
product_classes .append (products .LLDB )
847
- if self .args .build_llbuild :
848
- product_classes .append (products .LLBuild )
849
849
if self .args .build_libdispatch :
850
850
product_classes .append (products .LibDispatch )
851
851
if self .args .build_foundation :
852
852
product_classes .append (products .Foundation )
853
853
if self .args .build_xctest :
854
854
product_classes .append (products .XCTest )
855
+ if self .args .build_llbuild :
856
+ product_classes .append (products .LLBuild )
855
857
if self .args .build_swiftpm :
856
858
product_classes .append (products .SwiftPM )
859
+ if self .args .build_swiftsyntax :
860
+ product_classes .append (products .SwiftSyntax )
861
+ if self .args .build_skstresstester :
862
+ product_classes .append (products .SKStressTester )
857
863
return product_classes
858
864
859
865
def execute (self ):
@@ -878,7 +884,7 @@ class BuildScriptInvocation(object):
878
884
name == "merged-hosts-lipo" ), "invalid action"
879
885
action_name = name
880
886
elif product_class is None :
881
- assert name == "package" , "invalid action"
887
+ assert name in ( "package" , "extractsymbols" ) , "invalid action"
882
888
action_name = "{}-{}" .format (host .name , name )
883
889
else :
884
890
assert name is not None , "invalid action"
@@ -930,6 +936,10 @@ class BuildScriptInvocation(object):
930
936
for product_class in product_classes :
931
937
execute_one_impl_action (host_target , product_class , "install" )
932
938
939
+ # Extract symbols...
940
+ for host_target in all_hosts :
941
+ execute_one_impl_action (host_target , name = "extractsymbols" )
942
+
933
943
# Package...
934
944
for host_target in all_hosts :
935
945
execute_one_impl_action (host_target , name = "package" )
0 commit comments