summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/dashboard/builder/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/dashboard/builder/main.go b/misc/dashboard/builder/main.go
index 177857842..9a155bd0c 100644
--- a/misc/dashboard/builder/main.go
+++ b/misc/dashboard/builder/main.go
@@ -33,8 +33,6 @@ const (
var extraEnv = []string{
"CC",
"GOARM",
- "GOHOSTARCH",
- "GOHOSTOS",
"PATH",
"TMPDIR",
"USER",
@@ -409,7 +407,9 @@ func (b *Builder) envv() []string {
}
e := []string{
"GOOS=" + b.goos,
+ "GOHOSTOS=" + b.goos,
"GOARCH=" + b.goarch,
+ "GOHOSTARCH=" + b.goarch,
"GOROOT_FINAL=/usr/local/go",
}
for _, k := range extraEnv {
@@ -424,7 +424,9 @@ func (b *Builder) envv() []string {
func (b *Builder) envvWindows() []string {
start := map[string]string{
"GOOS": b.goos,
+ "GOHOSTOS": b.goos,
"GOARCH": b.goarch,
+ "GOHOSTARCH": b.goarch,
"GOROOT_FINAL": `c:\go`,
"GOBUILDEXIT": "1", // exit all.bat with completion status.
}