aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/gcc-version.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gcc-version.sh b/scripts/gcc-version.sh
index 9376ed4fb..0eb27c7a6 100755
--- a/scripts/gcc-version.sh
+++ b/scripts/gcc-version.sh
@@ -7,6 +7,6 @@
7# 7#
8 8
9compiler="$*" 9compiler="$*"
10 10# tr -d '\r': fix up msdos-style line endings (Cygwin et al)
11MAJ_MIN=$(echo __GNUC__ __GNUC_MINOR__ | $compiler -E -xc - | grep . | tail -n 1) 11MAJ_MIN=$(echo __GNUC__ __GNUC_MINOR__ | $compiler -E -xc - | tr -d '\r' | tail -n 1)
12printf '%02d%02d\n' $MAJ_MIN 12printf '%02d%02d\n' $MAJ_MIN