From 485d6317a31acb3db4c07a52559b92d19d584251 Mon Sep 17 00:00:00 2001 From: Emman Date: Mon, 20 Dec 2021 15:21:12 +0800 Subject: [PATCH] fix build arch issue --- sm2/p256.go | 4 ++-- sm2/p256_asm_table.go | 4 ++-- sm2/p256_asm_table_test.go | 4 ++-- sm2/p256_asm_test.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sm2/p256.go b/sm2/p256.go index 70a0ec9..9420320 100644 --- a/sm2/p256.go +++ b/sm2/p256.go @@ -1,5 +1,5 @@ -//go:build !amd64 -// +build !amd64 +//go:build !amd64 && !arm64 +// +build !amd64,!arm64 package sm2 diff --git a/sm2/p256_asm_table.go b/sm2/p256_asm_table.go index 173eeb6..1197434 100644 --- a/sm2/p256_asm_table.go +++ b/sm2/p256_asm_table.go @@ -1,6 +1,6 @@ // Generated by gen_p256_table.go. DO NOT EDIT. -//go:build amd64 -// +build amd64 +//go:build amd64 || arm64 +// +build amd64 arm64 package sm2 diff --git a/sm2/p256_asm_table_test.go b/sm2/p256_asm_table_test.go index ace564b..518d253 100644 --- a/sm2/p256_asm_table_test.go +++ b/sm2/p256_asm_table_test.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build amd64 -// +build amd64 +//go:build amd64 || arm64 +// +build amd64 arm64 package sm2 diff --git a/sm2/p256_asm_test.go b/sm2/p256_asm_test.go index b74f793..1785b0e 100644 --- a/sm2/p256_asm_test.go +++ b/sm2/p256_asm_test.go @@ -1,5 +1,5 @@ -//go:build amd64 -// +build amd64 +//go:build amd64 || arm64 +// +build amd64 arm64 package sm2