Skip to content

Commit e404165

Browse files
authored
Add version printout for PGI/NVIDIA compiler
1 parent b37e5fa commit e404165

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ endif
5959
@$(CC) --version > /dev/null 2>&1;\
6060
if [ $$? -eq 0 ]; then \
6161
cverinfo=`$(CC) --version | sed -n '1p'`; \
62+
if [ -z "$${cverinfo}" ]; then \
63+
cverinfo=`$(CC) --version | sed -n '2p'`; \
64+
fi; \
6265
echo " C compiler ... $(C_COMPILER) (cmd & version : $${cverinfo})";\
6366
else \
6467
echo " C compiler ... $(C_COMPILER) (command line : $(CC))";\
@@ -67,6 +70,9 @@ ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
6770
@$(FC) --version > /dev/null 2>&1;\
6871
if [ $$? -eq 0 ]; then \
6972
fverinfo=`$(FC) --version | sed -n '1p'`; \
73+
if [ -z "$${fverinfo}" ]; then \
74+
fverinfo=`$(FC) --version | sed -n '2p'`; \
75+
fi; \
7076
echo " Fortran compiler ... $(F_COMPILER) (cmd & version : $${fverinfo})";\
7177
else \
7278
echo " Fortran compiler ... $(F_COMPILER) (command line : $(FC))";\

0 commit comments

Comments
 (0)