Browse Source

recognize clang befoe gcc, so that we set the right options

Waldemar Brodkorb 8 years ago
parent
commit
c245ad3b79
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/prereq.sh

+ 2 - 2
scripts/prereq.sh

@@ -108,7 +108,7 @@ if [ ! -d $topdir/dl ]; then
 fi
 
 # check for c compiler
-compilerbins="cc gcc clang"
+compilerbins="clang cc gcc"
 for compilerbin in $compilerbins; do
   printf " --->  checking if $compilerbin is installed.. "
   if which $compilerbin >/dev/null; then
@@ -119,7 +119,7 @@ for compilerbin in $compilerbins; do
 done
 
 # check for c++ compiler
-compilerbins="c++ g++ clang++"
+compilerbins="clang++ c++ g++"
 for compilerbin in $compilerbins; do
   printf " --->  checking if $compilerbin is installed.. "
   if which $compilerbin >/dev/null; then