small build script fixes

This commit is contained in:
Thomas Pöchtrager 2013-11-14 20:28:27 +01:00
parent cbaa387542
commit 962e6acdfc
2 changed files with 7 additions and 3 deletions

View File

@ -81,6 +81,7 @@ mkdir -p $BUILD_DIR
mkdir -p $TARGET_DIR
mkdir -p $SDK_DIR
set +e
require $CC
require $CXX
require clang
@ -92,6 +93,7 @@ require cpio
require autogen
require automake
require libtool
set -e
CLANG_TARGET_OPTION=`./oclang/check_clang_target_option.sh`

View File

@ -6,15 +6,15 @@ export LIBRARY_PATH=""
export CC=clang
export CXX=clang++
which osxcross-conf || {
which osxcross-conf &>/dev/null || {
echo "you need to complete ./build.sh first, before you can start building gcc"
exit 1
}
eval `osxcross-conf`
set -e
eval `osxcross-conf`
# How many concurrent jobs should be used for compiling?
JOBS=`grep -c ^processor /proc/cpuinfo`
@ -35,7 +35,9 @@ function require
done
}
set +e
require wget
set -e
BASE_DIR=`pwd`