Change-Id: I41b8b98c9e57afe65848edfc50af7a56d73dce88
This commit is contained in:
Jes Cok 2025-03-07 08:58:27 +08:00
parent 45001d3b42
commit fad32e2e81

View file

@ -3540,7 +3540,7 @@ func SelectCoverPackages(roots []*Package, match []func(*Package) bool, op strin
// $GOROOT/src/internal/coverage/pkid.go dealing with // $GOROOT/src/internal/coverage/pkid.go dealing with
// hard-coding of runtime package IDs. // hard-coding of runtime package IDs.
cmode := cfg.BuildCoverMode cmode := cfg.BuildCoverMode
if cfg.BuildRace && p.Standard && (p.ImportPath == "runtime") { if cfg.BuildRace && p.Standard && p.ImportPath == "runtime" {
cmode = "regonly" cmode = "regonly"
} }