Skip to content

Commit

Permalink
suport go1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed May 27, 2024
1 parent 993d38a commit d447e3a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions internal/encoder/alg/spec.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build (amd64 && go1.16 && !go1.22) || (arm64 && go1.20 && !go1.22)
// +build amd64,go1.16,!go1.22 arm64,go1.20,!go1.22
//go:build (amd64 && go1.16 && !go1.23) || (arm64 && go1.20 && !go1.23)
// +build amd64,go1.16,!go1.23 arm64,go1.20,!go1.23

/**
* Copyright 2024 ByteDance Inc.
Expand Down
2 changes: 1 addition & 1 deletion internal/encoder/alg/spec_compat.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !amd64,!arm64 go1.22 !go1.17 arm64,!go1.20
// +build !amd64,!arm64 go1.23 !go1.17 arm64,!go1.20

/**
* Copyright 2024 ByteDance Inc.
Expand Down
4 changes: 2 additions & 2 deletions internal/encoder/x86/asm_stubs_amd64_go121.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.21 && !go1.22
// +build go1.21,!go1.22
//go:build go1.21 && !go1.23
// +build go1.21,!go1.23

// Copyright 2023 CloudWeGo Authors
//
Expand Down
4 changes: 2 additions & 2 deletions internal/encoder/x86/assembler_regabi_amd64.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.17 && !go1.22
// +build go1.17,!go1.22
//go:build go1.17 && !go1.23
// +build go1.17,!go1.23

/*
* Copyright 2021 ByteDance Inc.
Expand Down
4 changes: 2 additions & 2 deletions internal/encoder/x86/debug_go117.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build go1.17 && !go1.22
// +build go1.17,!go1.22
//go:build go1.17 && !go1.23
// +build go1.17,!go1.23

/*
* Copyright 2021 ByteDance Inc.
Expand Down

0 comments on commit d447e3a

Please sign in to comment.