Browse Source

Merge pull request #3866 from martin-frbg/issue3859

Fix INTERFACE64 option handling in gmake builds on riscv and loongarch
tags/v0.3.22^2
Martin Kroeker GitHub 2 years ago
parent
commit
84a1d76d1e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 1 deletions
  1. +20
    -1
      Makefile.system

+ 20
- 1
Makefile.system View File

@@ -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


Loading…
Cancel
Save