Merge pull request #8934 from oss-qm/submit/go_build_flags
Makefile: allow overriding GO_BUILD_FLAGS via environment
This commit is contained in:
commit
b30e0163ac
2
Makefile
2
Makefile
@ -129,7 +129,7 @@ endif
|
|||||||
GOPATHS=$(shell $(GO) env GOPATH | tr ":" "\n" | tr ";" "\n")
|
GOPATHS=$(shell $(GO) env GOPATH | tr ":" "\n" | tr ";" "\n")
|
||||||
|
|
||||||
TESTFLAGS_RACE=
|
TESTFLAGS_RACE=
|
||||||
GO_BUILD_FLAGS=
|
GO_BUILD_FLAGS ?=
|
||||||
# See Golang issue re: '-trimpath': https://github.com/golang/go/issues/13809
|
# See Golang issue re: '-trimpath': https://github.com/golang/go/issues/13809
|
||||||
GO_GCFLAGS=$(shell \
|
GO_GCFLAGS=$(shell \
|
||||||
set -- ${GOPATHS}; \
|
set -- ${GOPATHS}; \
|
||||||
|
Loading…
Reference in New Issue
Block a user