From baebdc078e22937762db56557f2c5c01f54ee829 Mon Sep 17 00:00:00 2001 From: lichao Date: Wed, 12 Oct 2022 10:08:18 +0800 Subject: [PATCH] support for loongarch --- src/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Makefile.inc b/src/Makefile.inc index fe49196..c657bc0 100644 --- a/src/Makefile.inc +++ b/src/Makefile.inc @@ -180,9 +180,11 @@ endif ifneq ($(ARCH), x86_64) ifneq ($(ARCH), aarch64) +ifneq ($(ARCH), loongarch64) $(error unsupported architecture: $(ARCH)) endif endif +endif LP64 := $(shell $(CC) $(CFLAGS) -dM -E -x c /dev/null | grep -Ec "__SIZEOF_LONG__.+8|__SIZEOF_POINTER__.+8" ) ifneq ($(LP64), 2) -- 2.31.1