build-llvm: Fix only checking out the source

This is used if calling build-compiler-rt.sh or build-libcxx.sh with
the environment variable SYNC set.
This commit is contained in:
Martin Storsjö committed 2019-10-23 13:21:56 +00:00
1 parent c7821ce27d
commit 255286eb72
1 file changed
+2
+2
View File
@@ -19,6 +19,7 @@ while [ $# -gt 0 ]; do
fi fi
shift shift
done done
if [ -z "$CHECKOUT_ONLY" ]; then
if [ -z "$PREFIX" ]; then if [ -z "$PREFIX" ]; then
echo $0 [--enable-asserts] [--full-llvm] dest echo $0 [--enable-asserts] [--full-llvm] dest
exit 1 exit 1
@@ -26,6 +27,7 @@ fi
mkdir -p "$PREFIX" mkdir -p "$PREFIX"
PREFIX="$(cd "$PREFIX" && pwd)" PREFIX="$(cd "$PREFIX" && pwd)"
fi
: ${CORES:=$(nproc 2>/dev/null)} : ${CORES:=$(nproc 2>/dev/null)}
: ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)} : ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)}