FAQ
Reviewers: rsc,

Message:
Hello rsc@golang.org (cc: golang-dev@googlegroups.com,
pkleiweg@xs4all.nl),

I'd like you to review this change to
https://code.google.com/p/go


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

Please review this at http://codereview.appspot.com/6725052/

Affected files:
M src/pkg/go/build/doc.go


Index: src/pkg/go/build/doc.go
===================================================================
--- a/src/pkg/go/build/doc.go
+++ b/src/pkg/go/build/doc.go
@@ -74,6 +74,16 @@
//
// (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
+//
+// is equivalent to
+//
+// // +build linux,386 darwin,386
+//
// During a particular build, the following words are satisfied:
//
// - the target operating system, as spelled by runtime.GOOS

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedOct 17, '12 at 12:09a
activeOct 22, '12 at 12:45a
posts5
users3
websitegolang.org

3 users in discussion

Nigeltao: 3 posts Rsc: 1 post Pkleiweg: 1 post

People

Translate

site design / logo © 2022 Grokbase