Fix GCC compiler version command to outputting the full version number

The version printed by GCC's -dumpversion option may only be a single
number (the major version). Therefore use the -dumpfullversion option which
guarantees to print the three numbers format 'major.minor.patchlevel'.

Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
This commit is contained in:
Christoph Niethammer 2023-04-17 14:48:29 +00:00
parent 3e7938ec65
commit 7df26522c3
6 changed files with 6 additions and 6 deletions

View file

@ -1,3 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=gcc CXX=g++ F77=gfortran FC=gfortran"
COMPILER_VERSION_CMD="gcc -dumpversion"
COMPILER_VERSION_CMD="gcc -dumpfullversion"

View file

@ -1,3 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=gcc CXX=g++ F77=gfortran FC=gfortran"
COMPILER_VERSION_CMD="gcc -dumpversion"
COMPILER_VERSION_CMD="gcc -dumpfullversion"

View file

@ -1,3 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=gcc CXX=g++ F77=gfortran FC=gfortran"
COMPILER_VERSION_CMD="gcc -dumpversion"
COMPILER_VERSION_CMD="gcc -dumpfullversion"

View file

@ -1,3 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=cc CXX=CC FC=ftn F90=ftn F77=ftn MPICC=cc MPICXX=CC MPIFC=ftn"
COMPILER_VERSION_CMD="cc -dumpversion"
COMPILER_VERSION_CMD="cc -dumpfullversion"

View file

@ -1,3 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=gcc CXX=g++ F77=gfortran FC=gfortran"
COMPILER_VERSION_CMD="gcc -dumpversion"
COMPILER_VERSION_CMD="gcc -dumpfullversion"

View file

@ -1,3 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=gcc CXX=g++ F77=gfortran FC=gfortran"
COMPILER_VERSION_CMD="gcc -dumpversion"
COMPILER_VERSION_CMD="gcc -dumpfullversion"