summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-27 23:12:46 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-08 19:31:57 +0200
commitac9ec140fbb81e12f9121c21b0d39b5747d6c37c (patch)
treeff781cfa416471fa49ef9d15d872a3dd6ef502cf /scripts
parent09a64fa2f76a0659074b88c88c3981dd4d482678 (diff)
add specific compiler order for Darwin
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prereq.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/prereq.sh b/scripts/prereq.sh
index ae35bc9c2..5d4df16e4 100755
--- a/scripts/prereq.sh
+++ b/scripts/prereq.sh
@@ -108,7 +108,11 @@ if [ ! -d $topdir/dl ]; then
fi
# check for c compiler
-compilerbins="cc gcc clang"
+if [ $os = "Darwin" ]; then
+ compilerbins="clang cc gcc"
+else
+ compilerbins="cc gcc clang"
+fi
for compilerbin in $compilerbins; do
printf " ---> checking if $compilerbin is installed.. "
if which $compilerbin >/dev/null; then
@@ -127,7 +131,11 @@ if [ -z "$CCFOUND" ]; then
fi
# check for c++ compiler
-compilerbins="c++ g++ clang++"
+if [ $os = "Darwin" ]; then
+ compilerbins="clang++ c++ g++"
+else
+ compilerbins="c++ g++ clang++"
+fi
for compilerbin in $compilerbins; do
printf " ---> checking if $compilerbin is installed.. "
if which $compilerbin >/dev/null; then