@@ -123,6 +123,7 @@ KNOWN_SETTINGS=(
123
123
skip-build-android " " " set to skip building Swift stdlibs for Android"
124
124
skip-build-lldb " " " set to skip building LLDB"
125
125
skip-build-llbuild " " " set to skip building llbuild"
126
+ skip-build-libcxx " " " set to skip building libcxx"
126
127
skip-build-swiftpm " " " set to skip building swiftpm"
127
128
skip-build-swiftsyntax " " " set to skip building swiftSyntax"
128
129
skip-build-skstresstester " " " set to skip building the SourceKit stress tester"
@@ -199,6 +200,7 @@ KNOWN_SETTINGS=(
199
200
install-skstresstester " " " whether to install the SourceKit stress tester"
200
201
install-xctest " " " whether to install xctest"
201
202
install-foundation " " " whether to install foundation"
203
+ install-libcxx " " " whether to install libc++"
202
204
install-libdispatch " " " whether to install libdispatch"
203
205
install-libicu " " " whether to install libicu"
204
206
install-playgroundsupport " " " whether to install PlaygroundSupport"
@@ -255,6 +257,7 @@ KNOWN_SETTINGS=(
255
257
swiftpm-cmake-options " " " CMake options used for all swiftpm targets"
256
258
xctest-cmake-options " " " CMake options used for all xctest targets"
257
259
playgroundsupport-cmake-options " " " CMake options used for all playgroundsupport targets"
260
+ libcxx-cmake-options " " " CMake options used for all libcxx targets"
258
261
# TODO: Remove this some time later.
259
262
user-config-args " " " **Renamed to --extra-cmake-options**: User-supplied arguments to cmake when used to do configuration."
260
263
only-execute " all" " Only execute the named action (see implementation)"
@@ -1180,6 +1183,7 @@ XCTEST_SOURCE_DIR="${WORKSPACE}/swift-corelibs-xctest"
1180
1183
FOUNDATION_SOURCE_DIR=" ${WORKSPACE} /swift-corelibs-foundation"
1181
1184
LIBDISPATCH_SOURCE_DIR=" ${WORKSPACE} /swift-corelibs-libdispatch"
1182
1185
LIBICU_SOURCE_DIR=" ${WORKSPACE} /icu"
1186
+ LIBCXX_SOURCE_DIR=" ${WORKSPACE} /libcxx"
1183
1187
PLAYGROUNDSUPPORT_SOURCE_DIR=" ${WORKSPACE} /swift-xcode-playground-support"
1184
1188
1185
1189
if [[ ! " ${SKIP_BUILD_PLAYGROUNDSUPPORT} " && ! -d ${PLAYGROUNDSUPPORT_SOURCE_DIR} ]]; then
@@ -1214,12 +1218,6 @@ if [ -e "${WORKSPACE}/compiler-rt" ] ; then
1214
1218
fi
1215
1219
fi
1216
1220
1217
- # Build libcxx, unless it doesn't exist.
1218
- LIBCXX_SOURCE_DIR=" ${WORKSPACE} /libcxx"
1219
- if [[ ! -e " ${LIBCXX_SOURCE_DIR} " ]] ; then
1220
- SKIP_BUILD_LIBCXX=1
1221
- fi
1222
-
1223
1221
PRODUCTS=(cmark llvm)
1224
1222
if [[ ! " ${SKIP_BUILD_LIBCXX} " ]] ; then
1225
1223
PRODUCTS=(" ${PRODUCTS[@]} " libcxx)
@@ -3446,6 +3444,9 @@ for host in "${ALL_HOSTS[@]}"; do
3446
3444
INSTALL_TARGETS=install-$( echo ${LLVM_INSTALL_COMPONENTS} | sed -E ' s/;/ install-/g' )
3447
3445
;;
3448
3446
libcxx)
3447
+ if [[ -z " ${INSTALL_LIBCXX} " ]] ; then
3448
+ continue
3449
+ fi
3449
3450
INSTALL_TARGETS=install-cxx-headers
3450
3451
;;
3451
3452
swift)
0 commit comments