mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
small build script fixes
This commit is contained in:
parent
cbaa387542
commit
962e6acdfc
2
build.sh
2
build.sh
@ -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`
|
||||
|
||||
|
@ -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`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user