1
0
mirror of https://github.com/golang/go synced 2024-10-03 11:21:22 -06:00

go/build: document the behavior of multiple build constraints.

R=rsc, pkleiweg
CC=golang-dev
https://golang.org/cl/6725052
This commit is contained in:
Nigel Tao 2012-10-22 11:15:17 +11:00
parent ee7680104f
commit 80c4eac637

View File

@ -74,6 +74,16 @@
// //
// (linux AND 386) OR (darwin AND (NOT cgo)) // (linux AND 386) OR (darwin AND (NOT cgo))
// //
// A file may have multiple build constraints. The overall constraint is the AND
// of the individual constraints. That is, the build constraints:
//
// // +build linux darwin
// // +build 386
//
// corresponds to the boolean formula:
//
// (linux OR darwin) AND 386
//
// During a particular build, the following words are satisfied: // During a particular build, the following words are satisfied:
// //
// - the target operating system, as spelled by runtime.GOOS // - the target operating system, as spelled by runtime.GOOS