Commit 80c4eac6 authored by Nigel Tao's avatar Nigel Tao

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

R=rsc, pkleiweg
CC=golang-dev
https://golang.org/cl/6725052
parent ee768010
...@@ -74,6 +74,16 @@ ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment