summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-15 05:48:40 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-15 05:48:40 +0100
commitc245ad3b7927dd5e142b456af499bc675304e904 (patch)
tree62926eaf2df8319f693f2f68f62722bf852fa4e8 /scripts
parentabb6c759e3ab2b8cbae58f0f62e03faf5d30fdc3 (diff)
recognize clang befoe gcc, so that we set the right options
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prereq.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/prereq.sh b/scripts/prereq.sh
index 7ae1dff1e..744f39ac4 100755
--- a/scripts/prereq.sh
+++ b/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