diff options
| author | Jeremy Jackins <jeremyjackins@gmail.com> | 2016-04-07 15:42:35 +0900 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2016-04-11 04:32:07 +0000 |
| commit | ba09d06e166a06b4405b2ffd92df6acf222d281f (patch) | |
| tree | f26576eac6a6a534e6d710506ceedc9a2a6abe1d /src/runtime/internal/sys/gengoos.go | |
| parent | 1faa8869c6c72f055cdaa2b547964830909c96c6 (diff) | |
| download | go-ba09d06e166a06b4405b2ffd92df6acf222d281f.tar.xz | |
runtime: remove remaining references to TheChar
After mdempsky's recent changes, these are the only references to
"TheChar" left in the Go tree. Without the context, and without
knowing the history, this is confusing.
Also rename sys.TheGoos and sys.TheGoarch to sys.GOOS
and sys.GOARCH.
Also change the heap dump format to include sys.GOARCH
rather than TheChar, which is no longer a concept.
Updates #15169 (changes heapdump format)
Change-Id: I3e99eeeae00ed55d7d01e6ed503d958c6e931dca
Reviewed-on: https://go-review.googlesource.com/21647
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/runtime/internal/sys/gengoos.go')
| -rw-r--r-- | src/runtime/internal/sys/gengoos.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/internal/sys/gengoos.go b/src/runtime/internal/sys/gengoos.go index e2bd87de4e..4c45c0af02 100644 --- a/src/runtime/internal/sys/gengoos.go +++ b/src/runtime/internal/sys/gengoos.go @@ -50,7 +50,7 @@ func main() { fmt.Fprintf(&buf, "// +build !android\n\n") // must explicitly exclude android for linux } fmt.Fprintf(&buf, "package sys\n\n") - fmt.Fprintf(&buf, "const TheGoos = `%s`\n\n", target) + fmt.Fprintf(&buf, "const GOOS = `%s`\n\n", target) for _, goos := range gooses { value := 0 if goos == target { @@ -68,7 +68,7 @@ func main() { var buf bytes.Buffer fmt.Fprintf(&buf, "// generated by gengoos.go using 'go generate'\n\n") fmt.Fprintf(&buf, "package sys\n\n") - fmt.Fprintf(&buf, "const TheGoarch = `%s`\n\n", target) + fmt.Fprintf(&buf, "const GOARCH = `%s`\n\n", target) for _, goarch := range goarches { value := 0 if goarch == target { |
