summaryrefslogtreecommitdiff
path: root/BUILD/check-cpu
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-01-13 16:38:43 +0200
committerMonty <monty@mariadb.org>2018-01-13 16:38:43 +0200
commit09ef28abd7c3c80a80512bb4bba7f8e8f0194abe (patch)
treee1a53dd18c29c75ebfa1f5f440443b4a627fc817 /BUILD/check-cpu
parent1eea7966f3e8194224ee56a4e1b322608db5efc3 (diff)
downloadmariadb-git-09ef28abd7c3c80a80512bb4bba7f8e8f0194abe.tar.gz
Fixed BUILD scripts
- Removed extra set -x -v used for debugging - Fixed that that gcc version tests works for gcc 7
Diffstat (limited to 'BUILD/check-cpu')
-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