diff options
author | Russ Cox <rsc@golang.org> | 2014-11-18 12:07:50 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-11-18 12:07:50 -0500 |
commit | 034ade9ba71b180de226866c5b95e71cc9e6effb (patch) | |
tree | c1914a5943bed7c96b371d7329aefc1cb725b06f /src/runtime/zgoos_android.go | |
parent | 684c00066a8b11bfa39b02449864841025a793d7 (diff) | |
download | go-034ade9ba71b180de226866c5b95e71cc9e6effb.tar.gz |
[dev.cc] runtime: generate GOOS- and GOARCH-specific files with go generate
Eventually I'd like almost everything cmd/dist generates
to be done with 'go generate' and checked in, to simplify
the bootstrap process. The only thing cmd/dist really needs
to do is write things like the current experiment info and
the current version.
This is a first step toward that. It replaces the _NaCl etc
constants with generated ones goos_nacl, goos_darwin,
goarch_386, and so on.
LGTM=dave, austin
R=austin, dave, bradfitz
CC=golang-codereviews, iant, r
https://codereview.appspot.com/174290043
Diffstat (limited to 'src/runtime/zgoos_android.go')
-rw-r--r-- | src/runtime/zgoos_android.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/runtime/zgoos_android.go b/src/runtime/zgoos_android.go new file mode 100644 index 000000000..abfba808b --- /dev/null +++ b/src/runtime/zgoos_android.go @@ -0,0 +1,19 @@ +// generated by gengoos.go using 'go generate' + +// +build android + +package runtime + +const theGoos = `android` + +const goos_android = 1 +const goos_darwin = 0 +const goos_dragonfly = 0 +const goos_freebsd = 0 +const goos_linux = 0 +const goos_nacl = 0 +const goos_netbsd = 0 +const goos_openbsd = 0 +const goos_plan9 = 0 +const goos_solaris = 0 +const goos_windows = 0 |