File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -783,6 +783,7 @@ endif
783783
784784ifeq ($(F_COMPILER), FLANG)
785785CCOMMON_OPT += -DF_INTERFACE_FLANG
786+ FCOMMON_OPT += -frecursive
786787ifdef BINARY64
787788ifdef INTERFACE64
788789ifneq ($(INTERFACE64), 0)
@@ -796,6 +797,11 @@ endif
796797ifeq ($(USE_OPENMP), 1)
797798FCOMMON_OPT += -fopenmp
798799endif
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
799805endif
800806
801807ifeq ($(F_COMPILER), G77)
@@ -1270,8 +1276,11 @@ endif
12701276
12711277override CFLAGS += $(COMMON_OPT) $(CCOMMON_OPT) -I$(TOPDIR)
12721278override PFLAGS += $(COMMON_OPT) $(CCOMMON_OPT) -I$(TOPDIR) -DPROFILE $(COMMON_PROF)
1273-
1279+ ifeq ($(FLANG_VENDOR),AOCC)
1280+ override FFLAGS += $(filter-out -O2 -O3,$(COMMON_OPT)) -O1 $(FCOMMON_OPT)
1281+ else
12741282override FFLAGS += $(COMMON_OPT) $(FCOMMON_OPT)
1283+ endif
12751284override FPFLAGS += $(FCOMMON_OPT) $(COMMON_PROF)
12761285#MAKEOVERRIDES =
12771286
You can’t perform that action at this time.
0 commit comments