Merge pull request #8934 from oss-qm/submit/go_build_flags

Makefile: allow overriding GO_BUILD_FLAGS via environment
This commit is contained in:
Samuel Karp
2023-10-08 00:23:01 -07:00
committed by GitHub

View File

@@ -129,7 +129,7 @@ endif
GOPATHS=$(shell $(GO) env GOPATH | tr ":" "\n" | tr ";" "\n")
TESTFLAGS_RACE=
GO_BUILD_FLAGS=
GO_BUILD_FLAGS ?=
# See Golang issue re: '-trimpath': https://github.com/golang/go/issues/13809
GO_GCFLAGS=$(shell \
set -- ${GOPATHS}; \