From 6b57709ada314d74afe11baa45b30405286f448c Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Mon, 27 May 2024 15:29:20 +0200 Subject: [PATCH] bindings/go/blst.tgo: add support for loong64. Fixes #218. --- bindings/go/blst.go | 4 +++- bindings/go/blst.tgo | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bindings/go/blst.go b/bindings/go/blst.go index 1a607add..b0713780 100644 --- a/bindings/go/blst.go +++ b/bindings/go/blst.go @@ -12,7 +12,9 @@ package blst // #cgo CFLAGS: -I${SRCDIR}/.. -I${SRCDIR}/../../build -I${SRCDIR}/../../src -D__BLST_CGO__ -fno-builtin-memcpy -fno-builtin-memset // #cgo amd64 CFLAGS: -D__ADX__ -mno-avx -// #cgo mips64 mips64le ppc64 ppc64le riscv64 s390x CFLAGS: -D__BLST_NO_ASM__ +// // no-asm 64-bit platforms from https://go.dev/doc/install/source +// #cgo loong64 mips64 mips64le ppc64 ppc64le riscv64 s390x CFLAGS: -D__BLST_NO_ASM__ +// // #include "blst.h" // // #if defined(__x86_64__) && (defined(__unix__) || defined(__APPLE__)) diff --git a/bindings/go/blst.tgo b/bindings/go/blst.tgo index 02b792b2..32887e06 100644 --- a/bindings/go/blst.tgo +++ b/bindings/go/blst.tgo @@ -8,7 +8,9 @@ package blst // #cgo CFLAGS: -I${SRCDIR}/.. -I${SRCDIR}/../../build -I${SRCDIR}/../../src -D__BLST_CGO__ -fno-builtin-memcpy -fno-builtin-memset // #cgo amd64 CFLAGS: -D__ADX__ -mno-avx -// #cgo mips64 mips64le ppc64 ppc64le riscv64 s390x CFLAGS: -D__BLST_NO_ASM__ +// // no-asm 64-bit platforms from https://go.dev/doc/install/source +// #cgo loong64 mips64 mips64le ppc64 ppc64le riscv64 s390x CFLAGS: -D__BLST_NO_ASM__ +// // #include "blst.h" // // #if defined(__x86_64__) && (defined(__unix__) || defined(__APPLE__))