summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-11-16 14:19:58 +0200
committerMonty <monty@mariadb.org>2018-11-16 14:19:58 +0200
commit3b6466328722679bb3f7ecd4b4823f1f51fe5a53 (patch)
treed7b1034d3b6afb905f434a225a659507282eeb9b /BUILD
parenta77f80b79eab4f7d9740086425fbf8d1f684e11b (diff)
downloadmariadb-git-3b6466328722679bb3f7ecd4b4823f1f51fe5a53.tar.gz
Updated check-cpu from 10.3 to get it to work with gcc 7.3.1
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/check-cpu6
1 files changed, 6 insertions, 0 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index ad8816dc421..c1c85cfd908 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -40,6 +40,12 @@ check_compiler_cpu_flags () {
cc_major=$1
cc_minor=$2
cc_patch=$3
+ if test -z "$cc_minor"; then
+ cc_minor="0";
+ fi
+ if test -z "$cc_patch"; then
+ cc_minor="0";
+ fi
cc_comp=`expr $cc_major '*' 100 '+' $cc_minor`
fi