@@ -497,6 +497,15 @@ build the Debug variant of the Swift standard library and SDK overlay""",
497
497
run_tests_group .add_argument ("-B" , "--benchmark" ,
498
498
help = "run the Swift Benchmark Suite after building" ,
499
499
action = "store_true" )
500
+ run_tests_group .add_argument ("--skip-test-linux" ,
501
+ help = "skip testing Swift stdlibs for Linux" ,
502
+ action = "store_true" )
503
+ run_tests_group .add_argument ("--skip-test-freebsd" ,
504
+ help = "skip testing Swift stdlibs for FreeBSD" ,
505
+ action = "store_true" )
506
+ run_tests_group .add_argument ("--skip-test-cygwin" ,
507
+ help = "skip testing Swift stdlibs for Cygwin" ,
508
+ action = "store_true" )
500
509
501
510
parser .add_argument ("-o" , "--test-optimized" ,
502
511
help = "run the test suite in optimized mode too (implies --test)" ,
@@ -507,6 +516,15 @@ build the Debug variant of the Swift standard library and SDK overlay""",
507
516
run_build_group .add_argument ("-S" , "--skip-build" ,
508
517
help = "generate build directory only without building" ,
509
518
action = "store_true" )
519
+ run_build_group .add_argument ("--skip-build-linux" ,
520
+ help = "skip building Swift stdlibs for Linux" ,
521
+ action = "store_true" )
522
+ run_build_group .add_argument ("--skip-build-freebsd" ,
523
+ help = "skip building Swift stdlibs for FreeBSD" ,
524
+ action = "store_true" )
525
+ run_build_group .add_argument ("--skip-build-cygwin" ,
526
+ help = "skip building Swift stdlibs for Cygwin" ,
527
+ action = "store_true" )
510
528
511
529
run_build_group .add_argument ("--skip-build-benchmarks" ,
512
530
help = "skip building Swift Benchmark Suite" ,
@@ -686,6 +704,10 @@ the number of parallel build jobs to use""",
686
704
"--skip-test-xctest" ,
687
705
"--skip-test-foundation" ,
688
706
"--skip-test-libdispatch" ,
707
+ "--skip-test-linux" ,
708
+ "--skip-test-freebsd" ,
709
+ "--skip-test-cygwin" ,
710
+ "--skip-test-osx" ,
689
711
"--skip-test-ios" ,
690
712
"--skip-test-tvos" ,
691
713
"--skip-test-watchos" ,
@@ -764,6 +786,9 @@ the number of parallel build jobs to use""",
764
786
"--skip-build-cmark" ,
765
787
"--skip-build-llvm" ,
766
788
"--skip-build-swift" ,
789
+ "--skip-build-linux" ,
790
+ "--skip-build-freebsd" ,
791
+ "--skip-build-cygwin" ,
767
792
"--skip-build-osx" ,
768
793
"--skip-build-ios" ,
769
794
"--skip-build-ios-device" ,
@@ -890,6 +915,18 @@ the number of parallel build jobs to use""",
890
915
if args .cmake_generator == 'Ninja' and \
891
916
not swift_build_support .ninja .is_ninja_installed ():
892
917
build_script_impl_args += ["--build-ninja" ]
918
+ if args .skip_build_linux :
919
+ build_script_impl_args += ["--skip-build-linux" ]
920
+ if args .skip_build_freebsd :
921
+ build_script_impl_args += ["--skip-build-freebsd" ]
922
+ if args .skip_build_cygwin :
923
+ build_script_impl_args += ["--skip-build-cygwin" ]
924
+ if args .skip_test_linux :
925
+ build_script_impl_args += ["--skip-test-linux" ]
926
+ if args .skip_test_freebsd :
927
+ build_script_impl_args += ["--skip-test-freebsd" ]
928
+ if args .skip_test_cygwin :
929
+ build_script_impl_args += ["--skip-test-cygwin" ]
893
930
build_script_impl_args += build_script_impl_inferred_args
894
931
895
932
# If we have extra_swift_args, combine all of them together and then add
0 commit comments