go.tools/ssa/interp: set GOARCH to runtime.GOARCH in target program.
Causes $GOROOT/test/env.go to pass if GOARCH is unset in parent's env. R=gri CC=golang-dev https://golang.org/cl/13709043
This commit is contained in:
parent
b9b578154e
commit
4c5148c4cd
|
|
@ -568,6 +568,7 @@ func Interpret(mainpkg *ssa.Package, mode Mode, filename string, args []string)
|
|||
envs = append(envs, s)
|
||||
}
|
||||
envs = append(envs, "GOSSAINTERP=1")
|
||||
envs = append(envs, "GOARCH="+runtime.GOARCH)
|
||||
setGlobal(i, pkg, "envs", envs)
|
||||
|
||||
case "runtime":
|
||||
|
|
|
|||
Loading…
Reference in New Issue