From ac9ec140fbb81e12f9121c21b0d39b5747d6c37c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 27 Sep 2016 23:12:46 +0200 Subject: add specific compiler order for Darwin --- scripts/prereq.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'scripts/prereq.sh') 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 -- cgit v1.2.3