@@ -83,8 +83,6 @@ KNOWN_SETTINGS=(
83
83
# When this flag is set, the build-script will only build/install the swift-syntax parser
84
84
# This is a temporary workaround of having a separate build product for swift-syntax parser
85
85
skip-swiftsyntax-swiftside " " " skip building/installing the swift side of swiftsyntax"
86
- skstresstester-build-type " Debug" " the build variant for the SourceKit stress tester"
87
- swiftevolve-build-type " Debug" " the build variant for the swift-evolve tool"
88
86
llbuild-enable-assertions " 1" " enable assertions in llbuild"
89
87
enable-asan " " " enable Address Sanitizer"
90
88
enable-ubsan " " " enable Undefined Behavior Sanitizer"
@@ -129,8 +127,6 @@ KNOWN_SETTINGS=(
129
127
skip-build-libcxx " " " set to skip building libcxx"
130
128
skip-build-swiftpm " " " set to skip building swiftpm"
131
129
skip-build-swiftsyntax " " " set to skip building swiftSyntax"
132
- skip-build-skstresstester " " " set to skip building the SourceKit stress tester"
133
- skip-build-swiftevolve " " " set to skip building the swift-evolve tool"
134
130
skip-build-xctest " " " set to skip building xctest"
135
131
skip-build-foundation " " " set to skip building foundation"
136
132
skip-build-libdispatch " " " set to skip building libdispatch"
@@ -145,8 +141,6 @@ KNOWN_SETTINGS=(
145
141
skip-test-llbuild " " " set to skip testing llbuild"
146
142
skip-test-swiftpm " " " set to skip testing swiftpm"
147
143
skip-test-swiftsyntax " " " set to skip testing swiftSyntax"
148
- skip-test-skstresstester " " " set to skip testing the SourceKit stress tester"
149
- skip-test-swiftevolve " " " set to skip testing the swift-evolve tool"
150
144
skip-test-xctest " " " set to skip testing xctest"
151
145
skip-test-foundation " " " set to skip testing foundation"
152
146
skip-test-libdispatch " " " set to skip testing libdispatch"
@@ -206,8 +200,6 @@ KNOWN_SETTINGS=(
206
200
install-swiftpm " " " whether to install swiftpm"
207
201
install-swiftsyntax " " " whether to install swiftsyntax"
208
202
skip-install-swiftsyntax-module " " " set to skip installing swiftsyntax modules"
209
- install-skstresstester " " " whether to install the SourceKit stress tester"
210
- install-swiftevolve " " " whether to install the swift-evolve tool"
211
203
install-xctest " " " whether to install xctest"
212
204
install-foundation " " " whether to install foundation"
213
205
install-libcxx " " " whether to install libc++"
@@ -1200,8 +1192,6 @@ LLBUILD_SOURCE_DIR="${WORKSPACE}/llbuild"
1200
1192
SWIFTPM_SOURCE_DIR=" ${WORKSPACE} /swiftpm"
1201
1193
SWIFTSYNTAX_SOURCE_DIR=" ${WORKSPACE} /swift-syntax"
1202
1194
STRESSTEST_PACKAGE_DIR=" ${WORKSPACE} /swift-stress-tester"
1203
- SKSTRESSTESTER_SOURCE_DIR=" ${STRESSTEST_PACKAGE_DIR} /SourceKitStressTester"
1204
- SWIFTEVOLVE_SOURCE_DIR=" ${STRESSTEST_PACKAGE_DIR} /SwiftEvolve"
1205
1195
XCTEST_SOURCE_DIR=" ${WORKSPACE} /swift-corelibs-xctest"
1206
1196
FOUNDATION_SOURCE_DIR=" ${WORKSPACE} /swift-corelibs-foundation"
1207
1197
FOUNDATION_STATIC_SOURCE_DIR=" ${WORKSPACE} /swift-corelibs-foundation"
@@ -1254,9 +1244,8 @@ PRODUCTS=("${PRODUCTS[@]}" swift)
1254
1244
if [[ ! " ${SKIP_BUILD_LLDB} " ]] ; then
1255
1245
PRODUCTS=(" ${PRODUCTS[@]} " lldb)
1256
1246
fi
1257
- # LLBuild, SwiftPM, SwiftSyntax, the SourceKit stress tester and XCTest are
1258
- # dependent on Foundation, so Foundation must be added to the list of build
1259
- # products first.
1247
+ # LLBuild, SwiftPM, SwiftSyntax and XCTest are dependent on Foundation, so
1248
+ # Foundation must be added to the list of build products first.
1260
1249
if [[ ! " ${SKIP_BUILD_LIBDISPATCH} " ]] ; then
1261
1250
PRODUCTS=(" ${PRODUCTS[@]} " libdispatch)
1262
1251
if [[ -z " ${SKIP_BUILD_SWIFT_STATIC_LIBDISPATCH} " ]] ; then
@@ -1275,27 +1264,19 @@ fi
1275
1264
if [[ ! " ${SKIP_BUILD_PLAYGROUNDSUPPORT} " ]] ; then
1276
1265
PRODUCTS=(" ${PRODUCTS[@]} " playgroundsupport)
1277
1266
fi
1278
- # SwiftPM, SwiftSyntax and the SourceKit stress tester are dependent on XCTest,
1279
- # so XCTest must be added to the list of build products first.
1267
+ # SwiftPM and SwiftSyntax are dependent on XCTest, so XCTest must be added to
1268
+ # the list of build products first.
1280
1269
if [[ ! " ${SKIP_BUILD_XCTEST} " ]] ; then
1281
1270
PRODUCTS=(" ${PRODUCTS[@]} " xctest)
1282
1271
fi
1283
- # SwiftSyntax and the SourceKit stress tester are dependent on SwiftPM, so
1284
- # SwiftPM must be added to the list of build products first.
1272
+ # SwiftSyntax is dependent on SwiftPM, so SwiftPM must be added to the list of
1273
+ # build products first.
1285
1274
if [[ ! " ${SKIP_BUILD_SWIFTPM} " ]] ; then
1286
1275
PRODUCTS=(" ${PRODUCTS[@]} " swiftpm)
1287
1276
fi
1288
- # The SourceKit stress tester and swift-evolve are dependent on SwiftSyntax, so
1289
- # it must be added to the list of build products first.
1290
1277
if [[ ! " ${SKIP_BUILD_SWIFTSYNTAX} " ]] ; then
1291
1278
PRODUCTS=(" ${PRODUCTS[@]} " swiftsyntax)
1292
1279
fi
1293
- if [[ ! " ${SKIP_BUILD_SKSTRESSTESTER} " ]] ; then
1294
- PRODUCTS=(" ${PRODUCTS[@]} " skstresstester)
1295
- fi
1296
- if [[ ! " ${SKIP_BUILD_SWIFTEVOLVE} " ]] ; then
1297
- PRODUCTS=(" ${PRODUCTS[@]} " swiftevolve)
1298
- fi
1299
1280
1300
1281
# Checks if a given product is enabled (i.e. part of $PRODUCTS array)
1301
1282
function contains_product() {
@@ -1604,12 +1585,6 @@ function build_directory_bin() {
1604
1585
swiftsyntax)
1605
1586
echo " ${root} /${SWIFTSYNTAX_BUILD_TYPE} /bin"
1606
1587
;;
1607
- skstresstester)
1608
- echo " ${root} /${SKSTRESSTESTER_BUILD_TYPE} /bin"
1609
- ;;
1610
- swiftevolve)
1611
- echo " ${root} /${SWIFTEVOLVE_BUILD_TYPE} /bin"
1612
- ;;
1613
1588
xctest)
1614
1589
echo " ${root} /${XCTEST_BUILD_TYPE} /bin"
1615
1590
;;
@@ -1755,12 +1730,6 @@ function cmake_config_opt() {
1755
1730
swiftsyntax)
1756
1731
echo " --config ${SWIFTSYNTAX_BUILD_TYPE} "
1757
1732
;;
1758
- skstresstester)
1759
- echo " --config ${SKSTRESSTESTER_BUILD_TYPE} "
1760
- ;;
1761
- swiftevolve)
1762
- echo " --config ${SWIFTEVOLVE_BUILD_TYPE} "
1763
- ;;
1764
1733
xctest)
1765
1734
echo " --config ${XCTEST_BUILD_TYPE} "
1766
1735
;;
@@ -1885,53 +1854,6 @@ function set_swiftsyntax_build_command() {
1885
1854
--filecheck-exec=" $( build_directory_bin ${LOCAL_HOST} llvm) /FileCheck" )
1886
1855
}
1887
1856
1888
- function set_stresstester_build_script_helper_command() {
1889
- local package_name=" $1 "
1890
- local package_build_type=" $2 "
1891
- local package_build_dir=" $3 "
1892
-
1893
- if [ " ${SKIP_BUILD_SWIFTSYNTAX} " ]; then
1894
- echo " Error: Cannot build $package_name without SwiftSyntax."
1895
- exit 1
1896
- fi
1897
-
1898
- local swiftsyntax_config=" debug"
1899
- if [[ $( is_cmake_release_build_type " ${SWIFTSYNTAX_BUILD_TYPE} " ) ]] ; then
1900
- swiftsyntax_config=" release"
1901
- fi
1902
- local config=" debug"
1903
- if [[ $( is_cmake_release_build_type " ${package_build_type} " ) ]] ; then
1904
- config=" release"
1905
- fi
1906
-
1907
- stresstester_build_script_helper_command=(" ${STRESSTEST_PACKAGE_DIR} /build-script-helper.py" )
1908
- if [[ " ${VERBOSE_BUILD} " ]] ; then
1909
- stresstester_build_script_helper_command+=(-v)
1910
- fi
1911
-
1912
- stresstester_build_script_helper_command+=(
1913
- --package-dir=" ${package_name} "
1914
- --build-dir=" ${package_build_dir} "
1915
- --swiftc-exec=" $( build_directory_bin ${LOCAL_HOST} swift) /swiftc"
1916
- --swift-build-exec=" $( swiftpm_find_tool swift-build) "
1917
- --swift-test-exec=" $( swiftpm_find_tool swift-test) "
1918
- --syntax-parser-header-dir=" ${SWIFT_SOURCE_DIR} /include/swift-c/SyntaxParser"
1919
- --syntax-parser-lib-dir=" $( build_directory ${host} swift) /lib"
1920
- --sourcekitd-dir=" $( build_directory ${host} swift) /lib"
1921
- --swiftsyntax-dir=" $( build_directory ${host} swiftsyntax) /${swiftsyntax_config} "
1922
- --config=" ${config} " )
1923
- }
1924
-
1925
- function set_skstresstester_build_command() {
1926
- set_stresstester_build_script_helper_command SourceKitStressTester " ${SKSTRESSTESTER_BUILD_TYPE} " " $( build_directory ${host} skstresstester) "
1927
- skstresstester_build_command=(" ${stresstester_build_script_helper_command[@]} " )
1928
- }
1929
-
1930
- function set_swiftevolve_build_command() {
1931
- set_stresstester_build_script_helper_command SwiftEvolve " ${SWIFTEVOLVE_BUILD_TYPE} " " $( build_directory ${host} swiftevolve) "
1932
- swiftevolve_build_command=(" ${stresstester_build_script_helper_command[@]} " )
1933
- }
1934
-
1935
1857
#
1936
1858
# Configure and build each product
1937
1859
#
@@ -2583,26 +2505,6 @@ for host in "${ALL_HOSTS[@]}"; do
2583
2505
set_swiftsyntax_build_command
2584
2506
call " ${swiftsyntax_build_command[@]} "
2585
2507
2586
- continue
2587
- ;;
2588
- skstresstester)
2589
- if [[ " $( uname -s) " != " Darwin" ]]; then
2590
- echo " error: unable to build swift-stress-tester on this platform"
2591
- continue
2592
- fi
2593
- set_skstresstester_build_command
2594
- call " ${skstresstester_build_command[@]} "
2595
-
2596
- continue
2597
- ;;
2598
- swiftevolve)
2599
- if [[ " $( uname -s) " != " Darwin" ]]; then
2600
- echo " error: unable to build swift-evolve on this platform"
2601
- continue
2602
- fi
2603
- set_swiftevolve_build_command
2604
- call " ${swiftevolve_build_command[@]} "
2605
-
2606
2508
continue
2607
2509
;;
2608
2510
xctest)
@@ -3117,24 +3019,6 @@ for host in "${ALL_HOSTS[@]}"; do
3117
3019
# As swiftSyntax tests itself, we break early here.
3118
3020
continue
3119
3021
;;
3120
- skstresstester)
3121
- if [[ " ${SKIP_TEST_SKSTRESSTESTER} " ]]; then
3122
- continue
3123
- fi
3124
- echo " --- Running tests for ${product} ---"
3125
- set_skstresstester_build_command
3126
- call " ${skstresstester_build_command[@]} " test
3127
- continue
3128
- ;;
3129
- swiftevolve)
3130
- if [[ " ${SKIP_TEST_SWIFTEVOLVE} " ]]; then
3131
- continue
3132
- fi
3133
- echo " --- Running tests for ${product} ---"
3134
- set_swiftevolve_build_command
3135
- call " ${swiftevolve_build_command[@]} " test
3136
- continue
3137
- ;;
3138
3022
xctest)
3139
3023
if [[ " ${SKIP_TEST_XCTEST} " ]]; then
3140
3024
continue
@@ -3491,42 +3375,6 @@ for host in "${ALL_HOSTS[@]}"; do
3491
3375
call " ${swiftsyntax_build_command[@]} " --dylib-dir=" ${DYLIB_DIR} " --install
3492
3376
fi
3493
3377
3494
- continue
3495
- ;;
3496
- skstresstester)
3497
- if [[ -z " ${INSTALL_SKSTRESSTESTER} " ]] ; then
3498
- continue
3499
- fi
3500
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
3501
- echo " --install-destdir is required to install products."
3502
- exit 1
3503
- fi
3504
- if [[ -z " ${INSTALL_SWIFTSYNTAX} " ]] ; then
3505
- echo " --install-swiftsyntax is required to install the SourceKit stress tester"
3506
- exit 1
3507
- fi
3508
-
3509
- echo " --- Installing ${product} ---"
3510
- set_skstresstester_build_command
3511
- call " ${skstresstester_build_command[@]} " --prefix=" ${host_install_destdir}${host_install_prefix} " install
3512
- continue
3513
- ;;
3514
- swiftevolve)
3515
- if [[ -z " ${INSTALL_SWIFTEVOLVE} " ]] ; then
3516
- continue
3517
- fi
3518
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
3519
- echo " --install-destdir is required to install products."
3520
- exit 1
3521
- fi
3522
- if [[ -z " ${INSTALL_SWIFTSYNTAX} " ]] ; then
3523
- echo " --install-swiftsyntax is required to install swift-evolve"
3524
- exit 1
3525
- fi
3526
-
3527
- echo " --- Installing ${product} ---"
3528
- set_swiftevolve_build_command
3529
- call " ${swiftevolve_build_command[@]} " --prefix=" ${host_install_destdir}${host_install_prefix} " install
3530
3378
continue
3531
3379
;;
3532
3380
xctest)
0 commit comments