From d53c455b3d01b397c6a533769596bc65d4eb4aac Mon Sep 17 00:00:00 2001 From: "duanyi.aster" Date: Fri, 31 May 2024 11:13:31 +0800 Subject: [PATCH] addjust build tag --- compat.go | 2 +- decode_test.go | 2 +- decoder/decoder_native.go | 1 - decoder/decoder_native_test.go | 37 ++++++++++++++++++++++++++++++++-- decoder/decoder_test.go | 34 ------------------------------- encode_test.go | 2 +- encoder/encoder_compat.go | 2 +- encoder/encoder_native.go | 2 +- encoder/encoder_native_test.go | 2 +- encoder/encoder_test.go | 2 +- search_test.go | 2 +- sonic.go | 2 +- 12 files changed, 44 insertions(+), 46 deletions(-) diff --git a/compat.go b/compat.go index 8e35e8cfb..5fea281e5 100644 --- a/compat.go +++ b/compat.go @@ -1,4 +1,4 @@ -// +build !amd64,!arm64 !go1.17 go1.23 +// +build !amd64,!arm64 go1.23 !go1.17 arm64,!go1.20 /* * Copyright 2021 ByteDance Inc. diff --git a/decode_test.go b/decode_test.go index 10a89a037..38d0df4e2 100644 --- a/decode_test.go +++ b/decode_test.go @@ -1,4 +1,4 @@ -// +build amd64,go1.17,!go1.23 arm64,go1.17,!go1.23 +// +build amd64,go1.17,!go1.23 arm64,go1.20,!go1.23 /* * Copyright 2021 ByteDance Inc. diff --git a/decoder/decoder_native.go b/decoder/decoder_native.go index e2527d875..6bcc1e24a 100644 --- a/decoder/decoder_native.go +++ b/decoder/decoder_native.go @@ -1,4 +1,3 @@ -//go:build (amd64 && go1.16 && !go1.23) || (arm64 && go1.20 && !go1.23) // +build amd64,go1.16,!go1.23 arm64,go1.20,!go1.23 diff --git a/decoder/decoder_native_test.go b/decoder/decoder_native_test.go index 65d1c5a91..4cb2b1638 100644 --- a/decoder/decoder_native_test.go +++ b/decoder/decoder_native_test.go @@ -1,4 +1,3 @@ -//go:build (amd64 && go1.16 && !go1.23) || (arm64 && go1.20 && !go1.23) // +build amd64,go1.16,!go1.23 arm64,go1.20,!go1.23 @@ -275,4 +274,38 @@ func BenchmarkSkip_Sonic(b *testing.B) { for i:=0; i