diff options
| author | Michael Anthony Knyszek <mknyszek@google.com> | 2021-06-16 20:14:22 +0000 |
|---|---|---|
| committer | Michael Knyszek <mknyszek@google.com> | 2021-06-17 18:54:38 +0000 |
| commit | 122f5e16d690bd14ae46e9cc7e37c0c84fdc2be8 (patch) | |
| tree | 6ae81d8dbe8c10c841c48a8d3d84f5b37d7f928c /src/runtime/internal/sys/sys.go | |
| parent | 804ecc2581caf33ae347d6a1ce67436d1f74e93b (diff) | |
| download | go-122f5e16d690bd14ae46e9cc7e37c0c84fdc2be8.tar.xz | |
[dev.typeparams] internal/goarch,internal/goos: explode runtime/internal/sys into pieces
This change extracts the GOOS and GOARCH specific constants from
runtime/internal/sys into packages that are available to the entire
standard library.
This change does not yet update the runtime and associated packages to
use them, and instead adds constants to runtime/internal/sys to forward
the constants defined by these new packages.
Change-Id: I14d574b8d7bfe599ad25da29dc1b39716e35a734
Reviewed-on: https://go-review.googlesource.com/c/go/+/328336
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/runtime/internal/sys/sys.go')
| -rw-r--r-- | src/runtime/internal/sys/sys.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/runtime/internal/sys/sys.go b/src/runtime/internal/sys/sys.go index 9d9ac4507f..694101d36f 100644 --- a/src/runtime/internal/sys/sys.go +++ b/src/runtime/internal/sys/sys.go @@ -5,11 +5,3 @@ // package sys contains system- and configuration- and architecture-specific // constants used by the runtime. package sys - -// The next line makes 'go generate' write the zgo*.go files with -// per-OS and per-arch information, including constants -// named Goos$GOOS and Goarch$GOARCH for every -// known GOOS and GOARCH. The constant is 1 on the -// current system, 0 otherwise; multiplying by them is -// useful for defining GOOS- or GOARCH-specific constants. -//go:generate go run gengoos.go |
