Skip to content

Commit 4904888

Browse files
authored
Merge pull request #25125 from gottesmm/pr-48e197f1a90eee298906aab36af439cbbbbd5ad2
[build-script-impl] When skipping building LLVM in toolchain only mod…
2 parents 1069fc2 + ec1ab21 commit 4904888

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

utils/build-script-impl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2153,8 +2153,18 @@ for host in "${ALL_HOSTS[@]}"; do
21532153
fi
21542154
if [ "${SKIP_BUILD_LLVM}" ] ; then
21552155
# We can't skip the build completely because the standalone
2156-
# build of Swift depend on these for testing etc.
2157-
build_targets=(llvm-tblgen clang-headers intrinsics_gen clang-tablegen-targets FileCheck not)
2156+
# build of Swift depend on these for building and testing.
2157+
build_targets=(llvm-tblgen clang-headers intrinsics_gen clang-tablegen-targets)
2158+
# If we are not performing a toolchain only build, then we
2159+
# also want to include FileCheck and not for testing
2160+
# purposes.
2161+
if [[ ! "${BUILD_TOOLCHAIN_ONLY}" ]] ; then
2162+
build_targets=(
2163+
"${build_targets[@]}"
2164+
FileCheck
2165+
not
2166+
)
2167+
fi
21582168
fi
21592169

21602170
if [ "${HOST_LIBTOOL}" ] ; then

0 commit comments

Comments
 (0)