cmd/go: go test -c does not apply specified gcflags to all packages #23180
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What did you do?
This is very similar to #22831, that problem was fixed however if I run
go test -gcflags='all=-N -l'
with https://github.com/aarzilli/testflags I expect to see all the compile units in the resulting binary have the flags -N and -l applied to them, but one is spared:also all functions in that compile unit are assigned to the package
github.com/aarzilli/testflags
when really they were defined inmain
.The text was updated successfully, but these errors were encountered: