File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
validation-test/BuildSystem Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -848,8 +848,11 @@ class BuildScriptInvocation(object):
848
848
impl_product_classes = []
849
849
if self .args .build_cmark :
850
850
impl_product_classes .append (products .CMark )
851
- if self .args .build_llvm :
852
- impl_product_classes .append (products .LLVM )
851
+
852
+ # If --skip-build-llvm is passed in, LLVM cannot be completely disabled, as
853
+ # Swift still needs a few LLVM targets like tblgen to be built for it to be
854
+ # configured. Instead, handle this in build-script-impl for now.
855
+ impl_product_classes .append (products .LLVM )
853
856
if self .args .build_libcxx :
854
857
impl_product_classes .append (products .LibCXX )
855
858
if self .args .build_libicu :
Original file line number Diff line number Diff line change @@ -1157,10 +1157,14 @@ LIBDISPATCH_STATIC_SOURCE_DIR="${WORKSPACE}/swift-corelibs-libdispatch"
1157
1157
LIBICU_SOURCE_DIR=" ${WORKSPACE} /icu"
1158
1158
LIBCXX_SOURCE_DIR=" ${WORKSPACE} /llvm-project/libcxx"
1159
1159
1160
+ # We cannot currently apply the normal rules of skipping here for LLVM. Even if
1161
+ # we are skipping building LLVM, we still need to at least build a few tools
1162
+ # like tblgen that Swift relies on for building and testing. See the LLVM
1163
+ # configure rules.
1164
+ PRODUCTS=(llvm)
1160
1165
[[ " ${SKIP_BUILD_CMARK} " ]] || PRODUCTS+=(cmark)
1161
1166
[[ " ${SKIP_BUILD_LIBCXX} " ]] || PRODUCTS+=(libcxx)
1162
1167
[[ " ${SKIP_BUILD_LIBICU} " ]] || PRODUCTS+=(libicu)
1163
- [[ " ${SKIP_BUILD_LLVM} " ]] || PRODUCTS+=(llvm)
1164
1168
[[ " ${SKIP_BUILD_SWIFT} " ]] || PRODUCTS+=(swift)
1165
1169
[[ " ${SKIP_BUILD_LLDB} " ]] || PRODUCTS+=(lldb)
1166
1170
[[ " ${SKIP_BUILD_LIBDISPATCH} " ]] || PRODUCTS+=(libdispatch)
@@ -1550,7 +1554,7 @@ for host in "${ALL_HOSTS[@]}"; do
1550
1554
if [ " ${BUILD_LLVM} " == " 0" ] ; then
1551
1555
build_targets=(clean)
1552
1556
fi
1553
- if [ " ${SKIP_BUILD} " ] ; then
1557
+ if [[ " ${SKIP_BUILD} " || " ${SKIP_BUILD_LLVM} " ] ] ; then
1554
1558
# We can't skip the build completely because the standalone
1555
1559
# build of Swift depend on these for building and testing.
1556
1560
build_targets=(llvm-tblgen clang-resource-headers intrinsics_gen clang-tablegen-targets)
Original file line number Diff line number Diff line change 20
20
# SKIP-CMARK-CHECK: --- Installing swift ---
21
21
22
22
# SKIP-LLVM-CHECK: cmake --build {{.*}}cmark-
23
- # SKIP-LLVM-CHECK-NOT : cmake --build {{.*}}llvm-
23
+ # SKIP-LLVM-CHECK: cmake --build {{.*}}llvm-tblgen
24
24
# SKIP-LLVM-CHECK: cmake --build {{.*}}swift-
25
25
# SKIP-LLVM-CHECK: --- Installing cmark ---
26
26
# SKIP-LLVM-CHECK-NOT: --- Installing llvm ---
You can’t perform that action at this time.
0 commit comments