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:
1 parent
c7821ce27d
commit
255286eb72
1 file changed
+8
-6
+8
-6
@@ -19,13 +19,15 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
shift
|
||||
done
|
||||
if [ -z "$PREFIX" ]; then
|
||||
echo $0 [--enable-asserts] [--full-llvm] dest
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$CHECKOUT_ONLY" ]; then
|
||||
if [ -z "$PREFIX" ]; then
|
||||
echo $0 [--enable-asserts] [--full-llvm] dest
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$PREFIX"
|
||||
PREFIX="$(cd "$PREFIX" && pwd)"
|
||||
mkdir -p "$PREFIX"
|
||||
PREFIX="$(cd "$PREFIX" && pwd)"
|
||||
fi
|
||||
|
||||
: ${CORES:=$(nproc 2>/dev/null)}
|
||||
: ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)}
|
||||
|
||||
Reference in new issue
Block a user