From 2bea0d5e26501eebc00c032d6f400d2a40b7080b Mon Sep 17 00:00:00 2001 From: "duanyi.aster" Date: Tue, 12 Dec 2023 12:00:20 +0800 Subject: [PATCH] chore: update incomptible warning message --- ast/api_compat.go | 2 +- decoder/decoder_compat.go | 2 +- encoder/encoder_compat.go | 2 +- tools/simde | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) create mode 160000 tools/simde diff --git a/ast/api_compat.go b/ast/api_compat.go index 7b475eb61..4c5f74309 100644 --- a/ast/api_compat.go +++ b/ast/api_compat.go @@ -28,7 +28,7 @@ import ( ) func init() { - println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable") + println("WARNING: sonic only supports Go1.16~1.21 && CPU amd64, but your environment is not suitable") } func quote(buf *[]byte, val string) { diff --git a/decoder/decoder_compat.go b/decoder/decoder_compat.go index 84bae4387..070eea633 100644 --- a/decoder/decoder_compat.go +++ b/decoder/decoder_compat.go @@ -30,7 +30,7 @@ import ( ) func init() { - println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable") + println("WARNING: sonic only supports Go1.16~1.21 && CPU amd64, but your environment is not suitable") } const ( diff --git a/encoder/encoder_compat.go b/encoder/encoder_compat.go index 0727fee63..2d3cb27a9 100644 --- a/encoder/encoder_compat.go +++ b/encoder/encoder_compat.go @@ -28,7 +28,7 @@ import ( ) func init() { - println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable") + println("WARNING: sonic only supports Go1.16~1.21 && CPU amd64, but your environment is not suitable") } // Options is a set of encoding options. diff --git a/tools/simde b/tools/simde new file mode 160000 index 000000000..4d55fc25b --- /dev/null +++ b/tools/simde @@ -0,0 +1 @@ +Subproject commit 4d55fc25bcfddc0e2f0c744448557a070dd310c9