From 1e3f4b0031c3d4676061bba0510089982e78e136 Mon Sep 17 00:00:00 2001 From: don bright Date: Mon, 16 Jul 2018 22:43:51 -0500 Subject: [PATCH] Update build-toolchain.bash the --no-ppc --no-carbon build was broken because it was looking for ppc tools. this allows it to at least get through the script. --- build-toolchain.bash | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build-toolchain.bash b/build-toolchain.bash index e9d35dde5c..4c49b7e112 100755 --- a/build-toolchain.bash +++ b/build-toolchain.bash @@ -516,11 +516,12 @@ for arch in $ARCHS; do "$PREFIX/bin/${arch}-apple-macos-ar" cqs "$PREFIX/${arch}-apple-macos/lib/libretrocrt.a" fi done -if [ ! -e "$PREFIX/powerpc-apple-macos/lib/libretrocrt-carbon.a" ]; then - echo "Creating dummy libretrocrt-carbon.a for $arch..." - "$PREFIX/bin/powerpc-apple-macos-ar" cqs "$PREFIX/powerpc-apple-macos/lib/libretrocrt-carbon.a" +if [ $BUILD_PPC != false ]; then + if [ ! -e "$PREFIX/powerpc-apple-macos/lib/libretrocrt-carbon.a" ]; then + echo "Creating dummy libretrocrt-carbon.a for $arch..." + "$PREFIX/bin/powerpc-apple-macos-ar" cqs "$PREFIX/powerpc-apple-macos/lib/libretrocrt-carbon.a" + fi fi - # the real libretrocrt.a is built and installed by # `cmake --build build-target --target install` later