]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.cc] cmd/dist: write default GO386 for cmd/internal/obj
authorRuss Cox <rsc@golang.org>
Fri, 6 Feb 2015 10:57:42 +0000 (05:57 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 17 Feb 2015 23:28:24 +0000 (23:28 +0000)
Change-Id: Ida60c30041505c321fbfc48b22b8ff5af1a3f474
Reviewed-on: https://go-review.googlesource.com/4837
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/dist/buildruntime.go

index 1f8276468e1d706d5e520ea86acf87948e0e53e9..317652476b90ff574eb78f3148c27aff838e196a 100644 (file)
@@ -38,6 +38,7 @@ func mkzversion(dir, file string) {
 //     package obj
 //
 //     const defaultGOROOT = <goroot>
+//     const defaultGO386 = <go386>
 //     const defaultGOARM = <goarm>
 //     const defaultGOOS = <goos>
 //     const defaultGOARCH = <goarch>
@@ -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)
 }