Skip to content

Commit ec1ab21

Browse files
committed
[build-script-impl] When skipping building LLVM in toolchain only mode, do not include FileCheck and not.
The reason why is that we will not generate targets for them causing the build to fail.
1 parent 967f1e6 commit ec1ab21

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
@@ -2150,8 +2150,18 @@ for host in "${ALL_HOSTS[@]}"; do
21502150
fi
21512151
if [ "${SKIP_BUILD_LLVM}" ] ; then
21522152
# We can't skip the build completely because the standalone
2153-
# build of Swift depend on these for testing etc.
2154-
build_targets=(llvm-tblgen clang-headers intrinsics_gen clang-tablegen-targets FileCheck not)
2153+
# build of Swift depend on these for building and testing.
2154+
build_targets=(llvm-tblgen clang-headers intrinsics_gen clang-tablegen-targets)
2155+
# If we are not performing a toolchain only build, then we
2156+
# also want to include FileCheck and not for testing
2157+
# purposes.
2158+
if [[ ! "${BUILD_TOOLCHAIN_ONLY}" ]] ; then
2159+
build_targets=(
2160+
"${build_targets[@]}"
2161+
FileCheck
2162+
not
2163+
)
2164+
fi
21552165
fi
21562166

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

0 commit comments

Comments
 (0)