golang: bump to 1.23.2

Signed-off-by: gitea-action <git@cooluc.com>
This commit is contained in:
gitea-action
2024-10-02 08:48:05 +08:00
parent 6b97afc8da
commit 65120f6a29
6 changed files with 49 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
#
# Copyright (C) 2018, 2020 Jeffery To
# Copyright (C) 2018-2023 Jeffery To
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -28,8 +28,8 @@ unexport \
GOFLAGS \
GOOS \
GOPATH \
GOTOOLCHAIN \
GOROOT \
GOTOOLCHAIN \
GOTMPDIR \
GOWORK
# Unmodified:
@@ -59,13 +59,19 @@ unexport \
# Architecture-specific environment variables:
unexport \
GOARM \
GOARM64 \
GO386 \
GOAMD64 \
GOMIPS \
GOMIPS64 \
GOPPC64 \
GORISCV64 \
GOWASM
# Environment variables for use with code coverage:
unexport \
GOCOVERDIR
# Special-purpose environment variables:
unexport \
GCCGOTOOLDIR \
@@ -78,6 +84,7 @@ unexport \
# From https://pkg.go.dev/runtime#hdr-Environment_Variables
unexport \
GOGC \
GOMEMLIMIT \
GOMAXPROCS \
GORACE \
GOTRACEBACK
@@ -123,10 +130,11 @@ unexport \
go_arch=$(subst \
aarch64,arm64,$(subst \
i386,386,$(subst \
loongarch64,loong64,$(subst \
mipsel,mipsle,$(subst \
mips64el,mips64le,$(subst \
powerpc64,ppc64,$(subst \
x86_64,amd64,$(1)))))))
x86_64,amd64,$(1))))))))
GO_OS:=linux
GO_ARCH:=$(call go_arch,$(ARCH))
@@ -197,17 +205,16 @@ endif
# Target Go
GO_ARCH_DEPENDS:=@(aarch64||arm||i386||i686||mips||mips64||mips64el||mipsel||powerpc64||x86_64)
GO_ARCH_DEPENDS:=@(aarch64||arm||i386||i686||loongarch64||mips||mips64||mips64el||mipsel||powerpc64||riscv64||x86_64)
# ASLR/PIE
# From https://go.dev/src/cmd/internal/sys/supported.go
# From https://go.dev/src/internal/platform/supported.go
GO_PIE_SUPPORTED_OS_ARCH:= \
android_386 android_amd64 android_arm android_arm64 \
linux_386 linux_amd64 linux_arm linux_arm64 \
\
windows_386 windows_amd64 windows_arm \
windows_386 windows_amd64 windows_arm windows_arm64 \
\
darwin_amd64 darwin_arm64 \
ios_amd64 ios_arm64 \
@@ -219,7 +226,7 @@ GO_PIE_SUPPORTED_OS_ARCH:= \
linux_loong64 linux_ppc64le linux_riscv64 linux_s390x
# From https://go.dev/src/cmd/go/internal/work/init.go
go_pie_install_suffix=$(if $(filter $(1),aix_ppc64 windows_386 windows_amd64 windows_arm),,shared)
go_pie_install_suffix=$(if $(filter $(1),aix_ppc64 windows_386 windows_amd64 windows_arm windows_arm64),,shared)
ifneq ($(filter $(GO_HOST_OS_ARCH),$(GO_PIE_SUPPORTED_OS_ARCH)),)
GO_HOST_PIE_SUPPORTED:=1