File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1658,12 +1658,20 @@ for host in "${ALL_HOSTS[@]}"; do
1658
1658
1659
1659
if [[ " ${NATIVE_CLANG_TOOLS_PATH} " ]] ; then
1660
1660
CLANG_BIN=" ${NATIVE_CLANG_TOOLS_PATH} "
1661
+ if [[ ! -f " ${CLANG_BIN} /clang" ]] ; then
1662
+ echo " error: clang does not exist at the specified native tools path: ${CLANG_BIN} /clang"
1663
+ exit 1
1664
+ fi
1661
1665
else
1662
1666
CLANG_BIN=" $( build_directory_bin ${LOCAL_HOST} llvm) "
1663
1667
fi
1664
1668
1665
1669
if [[ " ${NATIVE_SWIFT_TOOLS_PATH} " ]] ; then
1666
1670
SWIFTC_BIN=" ${NATIVE_SWIFT_TOOLS_PATH} /swiftc"
1671
+ if [[ ! -f " ${SWIFTC_BIN} " ]] ; then
1672
+ echo " error: swiftc does not exist at the specified native tools path: ${SWIFTC_BIN} "
1673
+ exit 1
1674
+ fi
1667
1675
else
1668
1676
SWIFTC_BIN=" $( build_directory_bin ${LOCAL_HOST} swift) /swiftc"
1669
1677
fi
You can’t perform that action at this time.
0 commit comments