Skip to content

Commit

Permalink
Fix INTERFACE64 builds on riscv and loongarch
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored and AndreySokolovSC committed Jan 18, 2024
1 parent da82ee4 commit 7e2c6eb
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Makefile.system
Original file line number Diff line number Diff line change
Expand Up @@ -827,13 +827,32 @@ endif
ifeq ($(ARCH), riscv64)
NO_BINARY_MODE = 1
BINARY_DEFINED = 1
ifdef INTERFACE64
ifneq ($(INTERFACE64), 0)
ifeq ($(F_COMPILER), GFORTRAN)
FCOMMON_OPT += -fdefault-integer-8
endif
ifeq ($(F_COMPILER), FLANG)
FCOMMON_OPT += -i8
endif
endif
endif
endif

ifeq ($(ARCH), loongarch64)
NO_BINARY_MODE = 1
BINARY_DEFINED = 1
ifdef INTERFACE64
ifneq ($(INTERFACE64), 0)
ifeq ($(F_COMPILER), GFORTRAN)
FCOMMON_OPT += -fdefault-integer-8
endif
ifeq ($(F_COMPILER), FLANG)
FCOMMON_OPT += -i8
endif
endif
endif
endif


#
# C Compiler dependent settings
Expand Down

0 comments on commit 7e2c6eb

Please sign in to comment.