From 8b8785a681b387f5c42bb50b5eb058eb07f88b67 Mon Sep 17 00:00:00 2001 From: yzewei Date: Thu, 21 Dec 2023 19:03:33 +0800 Subject: [PATCH] add loongarch64 support Signed-off-by: yzewei --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b8ca9cf..cb1084d 100644 --- a/setup.py +++ b/setup.py @@ -371,7 +371,7 @@ def build_extensions(self): else: openmpflag = "-fopenmp" archi = platform.machine() - if archi in ("i386", "x86_64"): + if archi in ("i386", "x86_64", "loongarch64"): compileflags = COMPILE_FLAGS + ["-march=%s" % self.march] else: compileflags = COMPILE_FLAGS + ["-mcpu=%s" % self.march]