Skip to content

Commit f07a803

Browse files
authored
Apply previously AOCC-specific workaround to all versions of flang
1 parent fdd1b50 commit f07a803

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Makefile.system

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -797,11 +797,11 @@ endif
797797
ifeq ($(USE_OPENMP), 1)
798798
FCOMMON_OPT += -fopenmp
799799
endif
800-
ifeq ($(OSNAME), Linux)
801-
ifeq ($(ARCH), x86_64)
802-
FLANG_VENDOR := $(shell expr `$(FC) --version|cut -f 1 -d "."|head -1`)
803-
endif
804-
endif
800+
#ifeq ($(OSNAME), Linux)
801+
#ifeq ($(ARCH), x86_64)
802+
#FLANG_VENDOR := $(shell expr `$(FC) --version|cut -f 1 -d "."|head -1`)
803+
#endif
804+
#endif
805805
endif
806806

807807
ifeq ($(F_COMPILER), G77)
@@ -1276,7 +1276,8 @@ endif
12761276

12771277
override CFLAGS += $(COMMON_OPT) $(CCOMMON_OPT) -I$(TOPDIR)
12781278
override PFLAGS += $(COMMON_OPT) $(CCOMMON_OPT) -I$(TOPDIR) -DPROFILE $(COMMON_PROF)
1279-
ifeq ($(FLANG_VENDOR),AOCC)
1279+
#ifeq ($(FLANG_VENDOR),AOCC)
1280+
ifeq ($(F_COMPILER),FLANG)
12801281
override FFLAGS += $(filter-out -O2 -O3,$(COMMON_OPT)) -O1 $(FCOMMON_OPT)
12811282
else
12821283
override FFLAGS += $(COMMON_OPT) $(FCOMMON_OPT)

0 commit comments

Comments
 (0)