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]