diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /scripts/gcc-version.sh | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'scripts/gcc-version.sh')
-rw-r--r-- | scripts/gcc-version.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gcc-version.sh b/scripts/gcc-version.sh index 7f2126df91f..debecb5561c 100644 --- a/scripts/gcc-version.sh +++ b/scripts/gcc-version.sh | |||
@@ -22,10 +22,10 @@ if [ ${#compiler} -eq 0 ]; then | |||
22 | exit 1 | 22 | exit 1 |
23 | fi | 23 | fi |
24 | 24 | ||
25 | MAJOR=$(echo __GNUC__ | $compiler -E -x c - | tail -n 1) | 25 | MAJOR=$(echo __GNUC__ | $compiler -E -xc - | tail -n 1) |
26 | MINOR=$(echo __GNUC_MINOR__ | $compiler -E -x c - | tail -n 1) | 26 | MINOR=$(echo __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1) |
27 | if [ "x$with_patchlevel" != "x" ] ; then | 27 | if [ "x$with_patchlevel" != "x" ] ; then |
28 | PATCHLEVEL=$(echo __GNUC_PATCHLEVEL__ | $compiler -E -x c - | tail -n 1) | 28 | PATCHLEVEL=$(echo __GNUC_PATCHLEVEL__ | $compiler -E -xc - | tail -n 1) |
29 | printf "%02d%02d%02d\\n" $MAJOR $MINOR $PATCHLEVEL | 29 | printf "%02d%02d%02d\\n" $MAJOR $MINOR $PATCHLEVEL |
30 | else | 30 | else |
31 | printf "%02d%02d\\n" $MAJOR $MINOR | 31 | printf "%02d%02d\\n" $MAJOR $MINOR |