1
0
mirror of https://github.com/golang/go synced 2024-11-15 00:50:32 -07:00

cmd/go: fix typo in ExtraEnvVarsCostly

For #69994

Change-Id: I7db39074f6a055efb29c1cbd0db4c286864a5da6
Reviewed-on: https://go-review.googlesource.com/c/go/+/621996
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: bcd a <letmetellsomediff@gmail.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Sam Thanawalla <samthanawalla@google.com>
This commit is contained in:
qiulaidongfeng 2024-10-23 21:33:00 +08:00 committed by Sam Thanawalla
parent 0140aae6d0
commit 4f092a9f34

View File

@ -250,7 +250,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar {
ev.Changed = ev.Value != ""
case "PKG_CONFIG":
ev.Changed = ev.Value != cfg.DefaultPkgConfig
case "CGO_CXXFLAGS", "CGO_CFLAGS", "CGO_FFLAGS", "GGO_LDFLAGS":
case "CGO_CXXFLAGS", "CGO_CFLAGS", "CGO_FFLAGS", "CGO_LDFLAGS":
ev.Changed = ev.Value != work.DefaultCFlags
}
}