From 8953ba9c2f584c43c777518cbb0eba059666661a Mon Sep 17 00:00:00 2001 From: azuresky01 <167838430+azuresky01@users.noreply.github.com> Date: Tue, 24 Jun 2025 14:27:15 +0800 Subject: [PATCH] Fix INTERFACE64 builds on Loongarch64 with LLVM fix https://github.com/OpenMathLib/OpenBLAS/issues/5331 --- Makefile.system | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.system b/Makefile.system index 38646c3c6..072e4b140 100644 --- a/Makefile.system +++ b/Makefile.system @@ -1191,6 +1191,13 @@ endif else ifeq ($(ARCH), $(filter $(ARCH),mips)) FCOMMON_OPT += -mabi=32 endif +ifeq ($(ARCH), $(filter $(ARCH),loongarch64)) +ifdef INTERFACE64 +ifneq ($(INTERFACE64), 0) +FCOMMON_OPT += -fdefault-integer-8 +endif +endif +endif else ifdef BINARY64 ifneq ($(OSNAME), AIX)