Skip to content

Commit 7e2c6eb

Browse files
martin-frbgAndreySokolovSC
authored andcommitted
Fix INTERFACE64 builds on riscv and loongarch
1 parent da82ee4 commit 7e2c6eb

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

Makefile.system

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,13 +827,32 @@ endif
827827
ifeq ($(ARCH), riscv64)
828828
NO_BINARY_MODE = 1
829829
BINARY_DEFINED = 1
830+
ifdef INTERFACE64
831+
ifneq ($(INTERFACE64), 0)
832+
ifeq ($(F_COMPILER), GFORTRAN)
833+
FCOMMON_OPT += -fdefault-integer-8
834+
endif
835+
ifeq ($(F_COMPILER), FLANG)
836+
FCOMMON_OPT += -i8
837+
endif
838+
endif
839+
endif
830840
endif
831841

832842
ifeq ($(ARCH), loongarch64)
833843
NO_BINARY_MODE = 1
834844
BINARY_DEFINED = 1
845+
ifdef INTERFACE64
846+
ifneq ($(INTERFACE64), 0)
847+
ifeq ($(F_COMPILER), GFORTRAN)
848+
FCOMMON_OPT += -fdefault-integer-8
849+
endif
850+
ifeq ($(F_COMPILER), FLANG)
851+
FCOMMON_OPT += -i8
852+
endif
853+
endif
854+
endif
835855
endif
836-
837856

838857
#
839858
# C Compiler dependent settings

0 commit comments

Comments
 (0)