1
0
mirror of https://github.com/golang/go synced 2024-11-15 08:30:35 -07:00

cmd/go: add -cover flag to report by go version -m

Fixes #67366
This commit is contained in:
Kioni 2024-05-22 23:39:33 +09:00
parent 33496c2dd3
commit 1405874d01

View File

@ -2349,6 +2349,9 @@ func (p *Package) setBuildInfo(ctx context.Context, autoVCS bool) {
appendSetting("-ldflags", ldflags) appendSetting("-ldflags", ldflags)
} }
} }
if cfg.BuildCover {
appendSetting("-cover", "true")
}
if cfg.BuildMSan { if cfg.BuildMSan {
appendSetting("-msan", "true") appendSetting("-msan", "true")
} }