blob: 57437a05e8b4479519587c760dc0fca4e1906126 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash +x
# exit script on first error
set -e
# get number of CPU cores
CPUS=`sysctl -n hw.ncpu`
# Stackoverflow suggests jobs count of (CPU cores + 1) as a respctively good number!
JOBS=`expr $CPUS + 1`
build_config()
{
CONFIG=$1
echo "*** Building: $CONFIG ***"
pushd "$(dirname "$0")/../../compiler/$CONFIG"
make -j$JOBS install
popd
}
# run make for all configs
build_config "osx32-checked"
build_config "osx32-debug"
build_config "osx32-profile"
build_config "osx32-release"
build_config "osx64-checked"
build_config "osx64-debug"
build_config "osx64-profile"
build_config "osx64-release"
|