From 4f092a9f34d8313e1e1e44b09878d1a542d68221 Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Wed, 23 Oct 2024 21:33:00 +0800 Subject: [PATCH] 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 Reviewed-by: bcd a Reviewed-by: Sam Thanawalla Reviewed-by: Carlos Amedee Auto-Submit: Sam Thanawalla --- src/cmd/go/internal/envcmd/env.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/internal/envcmd/env.go b/src/cmd/go/internal/envcmd/env.go index 6be387201207ca..426427cd76d031 100644 --- a/src/cmd/go/internal/envcmd/env.go +++ b/src/cmd/go/internal/envcmd/env.go @@ -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 } }