Skip to content

Commit 8953ba9

Browse files
authored
Fix INTERFACE64 builds on Loongarch64 with LLVM
fix #5331
1 parent b494505 commit 8953ba9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile.system

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,13 @@ endif
11911191
else ifeq ($(ARCH), $(filter $(ARCH),mips))
11921192
FCOMMON_OPT += -mabi=32
11931193
endif
1194+
ifeq ($(ARCH), $(filter $(ARCH),loongarch64))
1195+
ifdef INTERFACE64
1196+
ifneq ($(INTERFACE64), 0)
1197+
FCOMMON_OPT += -fdefault-integer-8
1198+
endif
1199+
endif
1200+
endif
11941201
else
11951202
ifdef BINARY64
11961203
ifneq ($(OSNAME), AIX)

0 commit comments

Comments
 (0)