]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/runtime2.go
[dev.garbage] all: merge dev.cc (493ad916c3b1) into dev.garbage
[gostls13.git] / src / runtime / runtime2.go
index 7625a2dd81f9d1ee28750ebc343feef75ac087a5..d18178d0939475eab1d66b46ea3282f82966af0c 100644 (file)
@@ -45,7 +45,13 @@ const (
        _Pdead
 )
 
-// XXX inserting below here
+// The next line makes 'go generate' write the zgen_*.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
 
 type mutex struct {
        // Futex-based impl treats it as uint32 key,
@@ -397,14 +403,6 @@ type itab struct {
        fun    [0]uintptr
 }
 
-const (
-       // TODO: Generate in cmd/dist.
-       _NaCl    = 0
-       _Windows = 0
-       _Solaris = 0
-       _Plan9   = 0
-)
-
 // Lock-free stack node.
 // // Also known to export_test.go.
 type lfnode struct {