]> Cypherpunks repositories - gostls13.git/commit
cmd/go: pass -gcflags after other flags generated by the go command
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 25 Aug 2021 07:56:01 +0000 (14:56 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 26 Aug 2021 02:06:43 +0000 (02:06 +0000)
commita6ff433d6a927e8ad8eaa6828127233296d12ce5
treec861abdeaa088bea249027c1b16e53b50e222e5f
parent4f2620285d7ce1802aff3d1f85e5ab0168d57bf3
cmd/go: pass -gcflags after other flags generated by the go command

Otherwise, any gc flags set by user using "-gcflags" won't have effect.

Fixes #47682

Change-Id: Icd365577cba1f64f6c7b8320d0c9019de9f062f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/344909
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/work/gc.go
src/cmd/go/testdata/script/build_gcflags_order.txt [new file with mode: 0644]
src/cmd/go/testdata/script/build_runtime_gcflags.txt
src/cmd/go/testdata/script/gcflags_patterns.txt