"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cmd/go/internal/envcmd/env.go" between
go1.19.src.tar.gz and go1.19.1.src.tar.gz

About: Google’s Go is a compiled, garbage-collected, concurrent programming language.
Latest stable release (1.19).

env.go  (go1.19.src):env.go  (go1.19.1.src)
skipping to change at line 177 skipping to change at line 177
} }
return []cfg.EnvVar{ return []cfg.EnvVar{
{Name: "GOMOD", Value: gomod}, {Name: "GOMOD", Value: gomod},
{Name: "GOWORK", Value: gowork}, {Name: "GOWORK", Value: gowork},
} }
} }
// ExtraEnvVarsCostly returns environment variables that should not leak into ch ild processes // ExtraEnvVarsCostly returns environment variables that should not leak into ch ild processes
// but are costly to evaluate. // but are costly to evaluate.
func ExtraEnvVarsCostly() []cfg.EnvVar { func ExtraEnvVarsCostly() []cfg.EnvVar {
var b work.Builder b := work.NewBuilder("")
b.Init()
cppflags, cflags, cxxflags, fflags, ldflags, err := b.CFlags(&load.Packag e{}) cppflags, cflags, cxxflags, fflags, ldflags, err := b.CFlags(&load.Packag e{})
if err != nil { if err != nil {
// Should not happen - b.CFlags was given an empty package. // Should not happen - b.CFlags was given an empty package.
fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err) fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err)
return nil return nil
} }
cmd := b.GccCmd(".", "") cmd := b.GccCmd(".", "")
join := func(s []string) string { join := func(s []string) string {
q, err := quoted.Join(s) q, err := quoted.Join(s)
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)