summaryrefslogtreecommitdiffhomepage
path: root/scripts/gcc-version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gcc-version.sh')
-rwxr-xr-xscripts/gcc-version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gcc-version.sh b/scripts/gcc-version.sh
index 34510804f..9376ed4fb 100755
--- a/scripts/gcc-version.sh
+++ b/scripts/gcc-version.sh
@@ -8,5 +8,5 @@
compiler="$*"
-MAJ_MIN=$(echo __GNUC__ __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1)
+MAJ_MIN=$(echo __GNUC__ __GNUC_MINOR__ | $compiler -E -xc - | grep . | tail -n 1)
printf '%02d%02d\n' $MAJ_MIN