diff --git a/build-compiler-rt.sh b/build-compiler-rt.sh index 04b55c5..aaac17e 100755 --- a/build-compiler-rt.sh +++ b/build-compiler-rt.sh @@ -22,7 +22,7 @@ fi mkdir -p "$PREFIX" PREFIX="$(cd "$PREFIX" && pwd)" -export PATH=$PREFIX/bin:$PATH +export PATH="$PREFIX/bin:$PATH" : ${CORES:=$(nproc 2>/dev/null)} : ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)} diff --git a/build-libcxx.sh b/build-libcxx.sh index 8965462..877d412 100755 --- a/build-libcxx.sh +++ b/build-libcxx.sh @@ -27,7 +27,7 @@ fi mkdir -p "$PREFIX" PREFIX="$(cd "$PREFIX" && pwd)" -export PATH=$PREFIX/bin:$PATH +export PATH="$PREFIX/bin:$PATH" : ${CORES:=$(nproc 2>/dev/null)} : ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)} diff --git a/build-libssp.sh b/build-libssp.sh index 71c4b2a..e5e4c06 100755 --- a/build-libssp.sh +++ b/build-libssp.sh @@ -9,7 +9,7 @@ fi PREFIX="$1" mkdir -p "$PREFIX" PREFIX="$(cd "$PREFIX" && pwd)" -export PATH=$PREFIX/bin:$PATH +export PATH="$PREFIX/bin:$PATH" : ${CORES:=$(nproc 2>/dev/null)} : ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)} diff --git a/build-mingw-w64-libraries.sh b/build-mingw-w64-libraries.sh index 025c3d3..debda04 100755 --- a/build-mingw-w64-libraries.sh +++ b/build-mingw-w64-libraries.sh @@ -9,7 +9,7 @@ fi PREFIX="$1" mkdir -p "$PREFIX" PREFIX="$(cd "$PREFIX" && pwd)" -export PATH=$PREFIX/bin:$PATH +export PATH="$PREFIX/bin:$PATH" : ${CORES:=$(nproc 2>/dev/null)} : ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)} diff --git a/build-mingw-w64.sh b/build-mingw-w64.sh index 51826c2..4d3cbe2 100755 --- a/build-mingw-w64.sh +++ b/build-mingw-w64.sh @@ -37,7 +37,7 @@ PREFIX="$(cd "$PREFIX" && pwd)" ORIGPATH="$PATH" if [ -z "$HOST" ]; then # The newly built toolchain isn't crosscompiled; add it to the path. - export PATH=$PREFIX/bin:$PATH + export PATH="$PREFIX/bin:$PATH" else # Crosscompiling the toolchain itself; the cross compiler is # expected to already be in $PATH. @@ -137,7 +137,7 @@ fi # If building on windows, we've installed prefixless wrappers - these break # building widl, as the toolchain isn't functional yet. Restore the original # path. -export PATH=$ORIGPATH +export PATH="$ORIGPATH" cd mingw-w64-tools/widl for arch in $ARCHS; do mkdir -p build-$CROSS_NAME$arch