Skip to content

Commit

Permalink
golang: Optimized values ​​to suit golang 1.23
Browse files Browse the repository at this point in the history
Unexporting `GOARM64` and `GORISCV64` minimizes unnecessary exposure
and potential conflicts, while adding `openbsd_riscv64` expands platform
support for a more flexible build process.

Signed-off-by: Milinda Brantini <[email protected]>
  • Loading branch information
p-w-p committed Sep 18, 2024
1 parent 0100feb commit 92ef3e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lang/golang/golang-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ build() {
if [ "$GO_GO_GENERATE" = 1 ]; then
log "Calling go generate"
# shellcheck disable=SC2086
GOOS='' GOARCH='' GO386='' GOARM='' GOMIPS='' GOMIPS64='' \
GOOS='' GOARCH='' GO386='' GOARM='' GOARM64='' GOMIPS='' GOMIPS64='' GORISCV64=''\
go generate -v $targets
log
fi
Expand Down
2 changes: 2 additions & 0 deletions lang/golang/golang-values.mk
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ unexport \
# Architecture-specific environment variables:
unexport \
GOARM \
GOARM64 \
GO386 \
GOAMD64 \
GOMIPS \
GOMIPS64 \
GOPPC64 \
GORISCV64 \
GOWASM

# Environment variables for use with code coverage:
Expand Down
1 change: 1 addition & 0 deletions lang/golang/golang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ HOST_GO_VALID_OS_ARCH:= \
wasip1_wasm \
\
freebsd_riscv64 \
openbsd_riscv64 \
\
linux_ppc64 linux_ppc64le \
linux_mips linux_mipsle linux_mips64 linux_mips64le \
Expand Down

0 comments on commit 92ef3e2

Please sign in to comment.