@@ -78,7 +78,6 @@ KNOWN_SETTINGS=(
78
78
libicu-build-type " Debug" " the build variant for libicu"
79
79
playgroundsupport-build-type " Debug" " the build variant for PlaygroundSupport"
80
80
xctest-build-type " Debug" " the build variant for xctest"
81
- swiftpm-build-type " Debug" " the build variant for swiftpm"
82
81
llbuild-enable-assertions " 1" " enable assertions in llbuild"
83
82
enable-asan " " " enable Address Sanitizer"
84
83
enable-ubsan " " " enable Undefined Behavior Sanitizer"
@@ -119,7 +118,6 @@ KNOWN_SETTINGS=(
119
118
skip-build-lldb " " " set to skip building LLDB"
120
119
skip-build-llbuild " " " set to skip building llbuild"
121
120
skip-build-libcxx " " " set to skip building libcxx"
122
- skip-build-swiftpm " " " set to skip building swiftpm"
123
121
skip-build-xctest " " " set to skip building xctest"
124
122
skip-build-foundation " " " set to skip building foundation"
125
123
skip-build-libdispatch " " " set to skip building libdispatch"
@@ -132,7 +130,6 @@ KNOWN_SETTINGS=(
132
130
skip-test-lldb " " " set to skip testing lldb"
133
131
skip-test-swift " " " set to skip testing Swift"
134
132
skip-test-llbuild " " " set to skip testing llbuild"
135
- skip-test-swiftpm " " " set to skip testing swiftpm"
136
133
skip-test-xctest " " " set to skip testing xctest"
137
134
skip-test-foundation " " " set to skip testing foundation"
138
135
skip-test-libdispatch " " " set to skip testing libdispatch"
@@ -189,7 +186,6 @@ KNOWN_SETTINGS=(
189
186
install-swift " " " whether to install Swift"
190
187
install-lldb " " " whether to install LLDB"
191
188
install-llbuild " " " whether to install llbuild"
192
- install-swiftpm " " " whether to install swiftpm"
193
189
install-xctest " " " whether to install xctest"
194
190
install-foundation " " " whether to install foundation"
195
191
install-libcxx " " " whether to install libc++"
@@ -248,7 +244,6 @@ KNOWN_SETTINGS=(
248
244
llvm-cmake-options " " " CMake options used for all llvm targets"
249
245
ninja-cmake-options " " " CMake options used for all ninja targets"
250
246
swift-cmake-options " " " CMake options used for all swift targets"
251
- swiftpm-cmake-options " " " CMake options used for all swiftpm targets"
252
247
xctest-cmake-options " " " CMake options used for all xctest targets"
253
248
playgroundsupport-cmake-options " " " CMake options used for all playgroundsupport targets"
254
249
# TODO: Remove this some time later.
@@ -406,7 +401,6 @@ function set_build_options_for_host() {
406
401
swift_cmake_options=()
407
402
cmark_cmake_options=()
408
403
lldb_cmake_options=()
409
- swiftpm_bootstrap_options=()
410
404
SWIFT_HOST_VARIANT=
411
405
SWIFT_HOST_VARIANT_SDK=
412
406
SWIFT_HOST_VARIANT_ARCH=
@@ -485,9 +479,6 @@ function set_build_options_for_host() {
485
479
-DCMAKE_OSX_SYSROOT:PATH=" $( xcrun --sdk ${xcrun_sdk_name} --show-sdk-path) "
486
480
-DCMAKE_OSX_DEPLOYMENT_TARGET=" ${cmake_osx_deployment_target} "
487
481
)
488
- swiftpm_bootstrap_options=(
489
- --sysroot=" $( xcrun --sdk ${xcrun_sdk_name} --show-sdk-path) "
490
- )
491
482
;;
492
483
iphonesimulator-i386)
493
484
xcrun_sdk_name=" iphonesimulator"
@@ -1179,7 +1170,6 @@ LLVM_SOURCE_DIR="${WORKSPACE}/llvm"
1179
1170
CMARK_SOURCE_DIR=" ${WORKSPACE} /cmark"
1180
1171
LLDB_SOURCE_DIR=" ${WORKSPACE} /lldb"
1181
1172
LLBUILD_SOURCE_DIR=" ${WORKSPACE} /llbuild"
1182
- SWIFTPM_SOURCE_DIR=" ${WORKSPACE} /swiftpm"
1183
1173
STRESSTEST_PACKAGE_DIR=" ${WORKSPACE} /swift-stress-tester"
1184
1174
XCTEST_SOURCE_DIR=" ${WORKSPACE} /swift-corelibs-xctest"
1185
1175
FOUNDATION_SOURCE_DIR=" ${WORKSPACE} /swift-corelibs-foundation"
@@ -1233,7 +1223,7 @@ PRODUCTS=("${PRODUCTS[@]}" swift)
1233
1223
if [[ ! " ${SKIP_BUILD_LLDB} " ]] ; then
1234
1224
PRODUCTS=(" ${PRODUCTS[@]} " lldb)
1235
1225
fi
1236
- # LLBuild, SwiftPM and XCTest are dependent on Foundation, so Foundation must
1226
+ # LLBuild and XCTest are dependent on Foundation, so Foundation must
1237
1227
# be added to the list of build products first.
1238
1228
if [[ ! " ${SKIP_BUILD_LIBDISPATCH} " ]] ; then
1239
1229
PRODUCTS=(" ${PRODUCTS[@]} " libdispatch)
@@ -1253,14 +1243,9 @@ fi
1253
1243
if [[ ! " ${SKIP_BUILD_PLAYGROUNDSUPPORT} " ]] ; then
1254
1244
PRODUCTS=(" ${PRODUCTS[@]} " playgroundsupport)
1255
1245
fi
1256
- # SwiftPM is dependent on XCTest, so XCTest must be added to the list of build
1257
- # products first.
1258
1246
if [[ ! " ${SKIP_BUILD_XCTEST} " ]] ; then
1259
1247
PRODUCTS=(" ${PRODUCTS[@]} " xctest)
1260
1248
fi
1261
- if [[ ! " ${SKIP_BUILD_SWIFTPM} " ]] ; then
1262
- PRODUCTS=(" ${PRODUCTS[@]} " swiftpm)
1263
- fi
1264
1249
1265
1250
# Checks if a given product is enabled (i.e. part of $PRODUCTS array)
1266
1251
function contains_product() {
@@ -1563,9 +1548,6 @@ function build_directory_bin() {
1563
1548
llbuild)
1564
1549
echo " ${root} /${LLBUILD_BUILD_TYPE} /bin"
1565
1550
;;
1566
- swiftpm)
1567
- echo " ${root} /${SWIFTPM_BUILD_TYPE} /bin"
1568
- ;;
1569
1551
xctest)
1570
1552
echo " ${root} /${XCTEST_BUILD_TYPE} /bin"
1571
1553
;;
@@ -1586,12 +1568,7 @@ function build_directory_bin() {
1586
1568
;;
1587
1569
esac
1588
1570
else
1589
- if [[ " ${product} " == " swiftpm" ]] ; then
1590
- set_swiftpm_bootstrap_command
1591
- echo " $( ${swiftpm_bootstrap_command[@]} --show-bin-path) "
1592
- else
1593
- echo " ${root} /bin"
1594
- fi
1571
+ echo " ${root} /bin"
1595
1572
fi
1596
1573
}
1597
1574
@@ -1705,9 +1682,6 @@ function cmake_config_opt() {
1705
1682
llbuild)
1706
1683
echo " --config ${LLBUILD_BUILD_TYPE} "
1707
1684
;;
1708
- swiftpm)
1709
- echo " --config ${SWIFTPM_BUILD_TYPE} "
1710
- ;;
1711
1685
xctest)
1712
1686
echo " --config ${XCTEST_BUILD_TYPE} "
1713
1687
;;
@@ -1730,81 +1704,6 @@ function cmake_config_opt() {
1730
1704
fi
1731
1705
}
1732
1706
1733
- function set_swiftpm_bootstrap_command() {
1734
- if [[ -n " ${swiftpm_bootstrap_command[@]} " ]]; then
1735
- # Already set.
1736
- return
1737
- fi
1738
-
1739
- SWIFTC_BIN=" $( build_directory_bin ${LOCAL_HOST} swift) /swiftc"
1740
- LLBUILD_BIN=" $( build_directory_bin ${LOCAL_HOST} llbuild) /swift-build-tool"
1741
- if [[ ! " ${SKIP_BUILD_FOUNDATION} " ]] ; then
1742
- FOUNDATION_BUILD_DIR=$( build_directory ${host} foundation)
1743
- if [[ ! " ${SKIP_BUILD_LIBDISPATCH} " ]] ; then
1744
- LIBDISPATCH_BUILD_DIR=" $( build_directory ${host} libdispatch) "
1745
- LIBDISPATCH_BUILD_ARGS=" --libdispatch-source-dir=${LIBDISPATCH_SOURCE_DIR} --libdispatch-build-dir=${LIBDISPATCH_BUILD_DIR} "
1746
- fi
1747
- if [[ ! " ${SKIP_BUILD_LIBICU} " ]] ; then
1748
- LIBICU_BUILD_DIR=" $( build_directory ${host} libicu) "
1749
- fi
1750
- if [[ ! " ${SKIP_BUILD_XCTEST} " ]] ; then
1751
- XCTEST_BUILD_DIR=$( build_directory ${host} xctest)
1752
- fi
1753
- fi
1754
- if [ " ${SKIP_BUILD_LLBUILD} " ]; then
1755
- echo " Error: Cannot build swiftpm without llbuild (swift-build-tool)."
1756
- exit 1
1757
- fi
1758
- if [[ " ${CMAKE_GENERATOR} " == " Xcode" ]]; then
1759
- echo " Error: Cannot build swiftpm when llbuild is built using Xcode."
1760
- exit 1
1761
- fi
1762
- swiftpm_bootstrap_command=(" ${SWIFTPM_SOURCE_DIR} /Utilities/bootstrap" " ${swiftpm_bootstrap_options[@]} " )
1763
- # Add --release if we have to build in release mode.
1764
- if [[ " ${SWIFTPM_BUILD_TYPE} " == " Release" ]] ; then
1765
- swiftpm_bootstrap_command+=(--release)
1766
- fi
1767
- if [[ " ${VERBOSE_BUILD} " ]] ; then
1768
- swiftpm_bootstrap_command+=(-v)
1769
- fi
1770
- # FIXME CROSSCOMPILING:
1771
- # SwiftPM needs to be told about the target, sysroot and linker to use
1772
- # when cross-compiling
1773
- swiftpm_bootstrap_command+=(
1774
- --swiftc=" ${SWIFTC_BIN} "
1775
- --sbt=" ${LLBUILD_BIN} "
1776
- --build=" $( build_directory ${host} swiftpm) " )
1777
-
1778
- # Add flags to link llbuild.
1779
- LLBUILD_BUILD_DIR=" $( build_directory ${host} llbuild) "
1780
- swiftpm_bootstrap_command+=(
1781
- --link-llbuild
1782
- --llbuild-source-dir=" ${LLBUILD_SOURCE_DIR} "
1783
- --llbuild-build-dir=" ${LLBUILD_BUILD_DIR} "
1784
- )
1785
-
1786
- if [[ ! " ${SKIP_BUILD_FOUNDATION} " ]] ; then
1787
- swiftpm_bootstrap_command+=( --foundation=" ${FOUNDATION_BUILD_DIR} " )
1788
- if [[ ! " ${SKIP_BUILD_LIBDISPATCH} " ]] ; then
1789
- swiftpm_bootstrap_command+=(
1790
- $LIBDISPATCH_BUILD_ARGS )
1791
- fi
1792
- if [[ ! " ${SKIP_BUILD_XCTEST} " ]] ; then
1793
- swiftpm_bootstrap_command+=(
1794
- --xctest=" ${XCTEST_BUILD_DIR} " )
1795
- fi
1796
- fi
1797
- }
1798
-
1799
- function swiftpm_find_tool() {
1800
- tool=$1
1801
- if [[ " ${SKIP_BUILD_SWIFTPM} " ]]; then
1802
- echo " $( xcrun_find_tool ${tool} ) "
1803
- else
1804
- echo " $( build_directory_bin ${LOCAL_HOST} swiftpm) /${tool} "
1805
- fi
1806
- }
1807
-
1808
1707
#
1809
1708
# Configure and build each product
1810
1709
#
@@ -2436,13 +2335,6 @@ for host in "${ALL_HOSTS[@]}"; do
2436
2335
-DLIBDISPATCH_SOURCE_DIR:PATH=" ${LIBDISPATCH_SOURCE_DIR} "
2437
2336
)
2438
2337
;;
2439
- swiftpm)
2440
- set_swiftpm_bootstrap_command
2441
- call " ${swiftpm_bootstrap_command[@]} "
2442
-
2443
- # swiftpm installs itself with a bootstrap method. No further cmake building is performed.
2444
- continue
2445
- ;;
2446
2338
xctest)
2447
2339
SWIFTC_BIN=" $( build_directory_bin ${LOCAL_HOST} swift) /swiftc"
2448
2340
XCTEST_BUILD_DIR=$( build_directory ${host} xctest)
@@ -2935,16 +2827,6 @@ for host in "${ALL_HOSTS[@]}"; do
2935
2827
results_targets=(" test" )
2936
2828
executable_target=" "
2937
2829
;;
2938
- swiftpm)
2939
- if [[ " ${SKIP_TEST_SWIFTPM} " ]]; then
2940
- continue
2941
- fi
2942
- echo " --- Running tests for ${product} ---"
2943
- set_swiftpm_bootstrap_command
2944
- call " ${swiftpm_bootstrap_command[@]} " test --test-parallel
2945
- # As swiftpm tests itself, we break early here.
2946
- continue
2947
- ;;
2948
2830
xctest)
2949
2831
if [[ " ${SKIP_TEST_XCTEST} " ]]; then
2950
2832
continue
@@ -3246,21 +3128,6 @@ for host in "${ALL_HOSTS[@]}"; do
3246
3128
exit 1
3247
3129
fi
3248
3130
;;
3249
- swiftpm)
3250
- if [[ -z " ${INSTALL_SWIFTPM} " ]] ; then
3251
- continue
3252
- fi
3253
- if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
3254
- echo " --install-destdir is required to install products."
3255
- exit 1
3256
- fi
3257
-
3258
- echo " --- Installing ${product} ---"
3259
- set_swiftpm_bootstrap_command
3260
- call " ${swiftpm_bootstrap_command[@]} " --prefix=" ${host_install_destdir}${host_install_prefix} " install
3261
- # As swiftpm bootstraps the installation itself, we break early here.
3262
- continue
3263
- ;;
3264
3131
xctest)
3265
3132
if [[ -z " ${INSTALL_XCTEST} " ]] ; then
3266
3133
continue
0 commit comments