Skip to content

Commit 9f1fe8f

Browse files
build: ensure test source files actually use -std=f2008
1 parent 533a61e commit 9f1fe8f

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

Diff for: num/test/make/makefile_base

+7-10
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,20 @@ nodeps : $(.DEFAULT_GOAL)
7777
#
7878
# COMPILATION RULES
7979

80-
COMPILE_NC = $(FC) $(FCbasic) $(FCopenmp) $(FCstatic) $(FCopt) $(FCfixed) $(TEST_INCLUDES) -c
81-
82-
bari_vdpol.o bari_vdpol3.o bari_vdpol_x.o bari_vdpol3_x.o bari_medakzo.o bari_hires.o \
83-
bari_pollu.o bari_rober.o bari_beam.o bari_chemakzo.o : %.o : %.f
80+
%.o : %.f
8481
ifneq ($(QUIET),)
85-
@echo COMPILE_LEGACY_NC $<
86-
@$(COMPILE_NC) $<
82+
@echo TEST_COMPILE fixed $<
83+
@$(TEST_COMPILE) $(FCfixed) -fimplicit-none $<
8784
else
88-
$(COMPILE_NC) $<
85+
$(TEST_COMPILE) $(FCfixed)-fimplicit-none $<
8986
endif
9087

9188
%.o: %.f90
9289
ifneq ($(QUIET),)
93-
@echo TEST_COMPILE_LEGACY $<
94-
@$(TEST_COMPILE) $(FCfree) $<
90+
@echo TEST_COMPILE free $<
91+
@$(TEST_COMPILE) $(FCfree) -fimplicit-none $<
9592
else
96-
$(TEST_COMPILE) $(FCfree) $<
93+
$(TEST_COMPILE) $(FCfree) -fimplicit-none $<
9794
endif
9895

9996
#################################################################

Diff for: utils/makefile_header

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ LOCAL_LIB_DIR = $(PACKAGE_DIR)/make
247247
MESA_LIB_DIR = $(MESA_DIR)/lib
248248
MESA_INCLUDE_DIR = $(MESA_DIR)/include
249249
TEST_INCLUDES = -I$(LOCAL_LIB_DIR) -I$(PACKAGE_DIR)/public -I$(MESA_INCLUDE_DIR)
250-
TEST_COMPILE_FLAGS = $(FCbasic) $(FCopenmp) $(TEST_INCLUDES) $(FCchecks) $(FCdebug) $(LIB_FLAGS) -c
250+
TEST_COMPILE_FLAGS = $(FCbasic) $(FCopenmp) $(TEST_INCLUDES) $(FCchecks) $(FCdebug) $(LIB_FLAGS) $(FCstandard) $(FCimpno) -c
251251
TEST_COMPILE = $(FC) $(TEST_COMPILE_FLAGS) $(LD_FLAGS)
252252

253253
# Library lists / linking commands

0 commit comments

Comments
 (0)