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:
parent
3e7938ec65
commit
7df26522c3
6 changed files with 6 additions and 6 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue