From 535f29c68eadd1faff366ad22f10b7b1058fccd6 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 6 Feb 2015 05:57:42 -0500 Subject: [PATCH] [dev.cc] cmd/dist: write default GO386 for cmd/internal/obj Change-Id: Ida60c30041505c321fbfc48b22b8ff5af1a3f474 Reviewed-on: https://go-review.googlesource.com/4837 Reviewed-by: Rob Pike Reviewed-by: Minux Ma --- src/cmd/dist/buildruntime.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd/dist/buildruntime.go b/src/cmd/dist/buildruntime.go index 1f8276468e1..317652476b9 100644 --- a/src/cmd/dist/buildruntime.go +++ b/src/cmd/dist/buildruntime.go @@ -38,6 +38,7 @@ func mkzversion(dir, file string) { // package obj // // const defaultGOROOT = +// const defaultGO386 = // const defaultGOARM = // const defaultGOOS = // const defaultGOARCH = @@ -51,12 +52,13 @@ func mkzbootstrap(file string) { "package obj\n"+ "\n"+ "const defaultGOROOT = `%s`\n"+ + "const defaultGO386 = `%s`\n"+ "const defaultGOARM = `%s`\n"+ "const defaultGOOS = `%s`\n"+ "const defaultGOARCH = `%s`\n"+ "const version = `%s`\n"+ "const goexperiment = `%s`\n", - goroot_final, goarm, gohostos, gohostarch, findgoversion(), os.Getenv("GOEXPERIMENT")) + goroot_final, go386, goarm, gohostos, gohostarch, findgoversion(), os.Getenv("GOEXPERIMENT")) writefile(out, file, 0) }