From df85a7f623bb379c120ae725421f7e1e8b456a04 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Fri, 29 Mar 2024 17:55:57 +0800 Subject: [PATCH] internal: align build flag --- internal/sm2ec/p256_asm_arm64.s | 2 +- internal/subtle/xor_amd64.go | 2 +- internal/subtle/xor_amd64.s | 2 +- internal/subtle/xor_arm64.go | 2 +- internal/subtle/xor_arm64.s | 2 +- internal/subtle/xor_generic.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/sm2ec/p256_asm_arm64.s b/internal/sm2ec/p256_asm_arm64.s index 398bde4a..6eb493a9 100644 --- a/internal/sm2ec/p256_asm_arm64.s +++ b/internal/sm2ec/p256_asm_arm64.s @@ -4,7 +4,7 @@ // 256-bit primes" // http://link.springer.com/article/10.1007%2Fs13389-014-0090-x // https://eprint.iacr.org/2013/816.pdf -//go:build arm64 && !purego +//go:build !purego #include "textflag.h" diff --git a/internal/subtle/xor_amd64.go b/internal/subtle/xor_amd64.go index fb6bccb2..c5c4ed10 100644 --- a/internal/subtle/xor_amd64.go +++ b/internal/subtle/xor_amd64.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // -//go:build amd64 && !purego +//go:build !purego package subtle diff --git a/internal/subtle/xor_amd64.s b/internal/subtle/xor_amd64.s index f2dfa159..009e9c44 100644 --- a/internal/subtle/xor_amd64.s +++ b/internal/subtle/xor_amd64.s @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // -//go:build amd64 && !purego +//go:build !purego #include "textflag.h" diff --git a/internal/subtle/xor_arm64.go b/internal/subtle/xor_arm64.go index 912678e1..6fbacf9c 100644 --- a/internal/subtle/xor_arm64.go +++ b/internal/subtle/xor_arm64.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // -//go:build arm64 && !purego +//go:build !purego package subtle diff --git a/internal/subtle/xor_arm64.s b/internal/subtle/xor_arm64.s index 1454ab1a..8f7ac7fc 100644 --- a/internal/subtle/xor_arm64.s +++ b/internal/subtle/xor_arm64.s @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // -//go:build arm64 && !purego +//go:build !purego #include "textflag.h" diff --git a/internal/subtle/xor_generic.go b/internal/subtle/xor_generic.go index 2d7f1d5d..e9db8d89 100644 --- a/internal/subtle/xor_generic.go +++ b/internal/subtle/xor_generic.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // -//go:build !amd64 && !arm64 || purego +//go:build purego || !(amd64 || arm64) package subtle