Skip to content

Commit 2158dc6

Browse files
authored
Merge pull request #3904 from martin-frbg/issue3901
Don't add -tp for the nvc compiler if there is one already in CFLAGS
2 parents 3dec11c + ebe5045 commit 2158dc6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile.system

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,16 +968,19 @@ endif
968968
endif
969969
ifdef BINARY64
970970
ifeq ($(ARCH), x86_64)
971+
ifeq (,$(findstring tp,$(CFLAGS)))
971972
ifneq ($(NEWPGI2),1)
972973
CCOMMON_OPT += -tp p7-64
973974
else
974975
CCOMMON_OPT += -tp px
975976
endif
977+
endif
976978
ifneq ($(NEWPGI),1)
977979
CCOMMON_OPT += -D__MMX__ -Mnollvm
978980
endif
979981
else
980982
ifeq ($(ARCH), power)
983+
ifeq (,$(findstring tp,$(CFLAGS)))
981984
ifeq ($(CORE), POWER8)
982985
CCOMMON_OPT += -tp pwr8
983986
endif
@@ -986,14 +989,17 @@ CCOMMON_OPT += -tp pwr9
986989
endif
987990
endif
988991
endif
992+
endif
989993
else
990994
ifneq ($(NEWPGI2),1)
995+
ifeq (,$(findstring tp,$(CFLAGS)))
991996
CCOMMON_OPT += -tp p7
992997
else
993998
CCOMMON_OPT += -tp px
994999
endif
9951000
endif
9961001
endif
1002+
endif
9971003

9981004
ifeq ($(C_COMPILER), PATHSCALE)
9991005
ifdef BINARY64

0 commit comments

Comments
 (0)