head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.08.22.18.49.07; author bsiegert; state Exp; branches; next ; commitid S80wl0ktjWneiFSG; desc @@ 1.1 log @go: add Go 1.27.0 as lang/go127 To find out what has changed in Go 1.27, read the release notes: https://go.dev/doc/go1.27 @ text @$NetBSD: patch-src_cmd_dist_build.go,v 1.1 2026/02/22 15:20:08 bsiegert Exp $ Build with debugging symbols and paths built in. Otherwise, the go tool needs /proc mounted to find its goroot directory. --- src/cmd/dist/build.go.orig 2023-11-29 21:21:46.000000000 +0000 +++ src/cmd/dist/build.go @@@@ -1317,14 +1317,6 @@@@ func toolenv() []string { // as the original build system. env = append(env, "CGO_ENABLED=0") } - if isRelease || os.Getenv("GO_BUILDER_NAME") != "" { - // Add -trimpath for reproducible builds of releases. - // Include builders so that -trimpath is well-tested ahead of releases. - // Do not include local development, so that people working in the - // main branch for day-to-day work on the Go toolchain itself can - // still have full paths for stack traces for compiler crashes and the like. - env = append(env, "GOFLAGS=-trimpath -ldflags=-w -gcflags=cmd/...=-dwarf=false") - } return env } @