Package: brian Version: 2.5.4-3 Severity: normal X-Debbugs-Cc: liuxi...@loongson.cn
Dear Maintainer, Please add loong64 support, patch file is attached. Thanks
diff -ruN brian-2.5.4-bk/brian2/codegen/cpp_prefs.py brian-2.5.4/brian2/codegen/cpp_prefs.py --- brian-2.5.4-bk/brian2/codegen/cpp_prefs.py 2023-12-25 08:37:13.000000000 +0000 +++ brian-2.5.4/brian2/codegen/cpp_prefs.py 2023-12-25 08:57:33.323718519 +0000 @@ -124,7 +124,7 @@ "-mtune=native", "-std=c++11", ] - elif re.match("^(parisc.*|riscv.*|mips.*)$", machine): + elif re.match("^(parisc.*|riscv.*|mips.*|loong64.*)$", machine): default_buildopts = [ "-w", "-O3", @@ -155,7 +155,7 @@ elif re.match('^(alpha|ppc.*|sparc.*)$', machine): default_buildopts = ['-w', '-O3', '-ffast-math', '-fno-finite-math-only', '-mcpu=native', '-mtune=native', '-std=c++11'] -elif re.match('^(sh|m68k|ia64|parisc.*|riscv.*|mips.*)$', machine): +elif re.match('^(sh|m68k|ia64|parisc.*|riscv.*|mips.*|loong64.*)$', machine): default_buildopts = ['-w', '-O3', '-ffast-math', '-fno-finite-math-only', '-std=c++11'] else: