aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 @@
8 8
9compiler="$*" 9compiler="$*"
10 10
11MAJ_MIN=$(echo __GNUC__ __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1) 11MAJ_MIN=$(echo __GNUC__ __GNUC_MINOR__ | $compiler -E -xc - | grep . | tail -n 1)
12printf '%02d%02d\n' $MAJ_MIN 12printf '%02d%02d\n' $MAJ_MIN