]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: fix boolean negation
authorRuss Cox <rsc@golang.org>
Wed, 13 Jun 2012 20:24:56 +0000 (16:24 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 13 Jun 2012 20:24:56 +0000 (16:24 -0400)
!(linux&cgo | darwin&cgo)
= (!linux|!cgo) & (!darwin|!cgo)
= (!linux&!darwin) | !cgo  // new comment
≠ !linux | !darwin | !cgo  // old comment

Fixes #3726.

R=golang-dev, bsiegert
CC=golang-dev
https://golang.org/cl/6306076

src/pkg/go/build/doc.go

index 67c26ac7f4f7edc4ab8792ebcaf75f7cc9573461..618eefe9e46de24add3accd0978b1c521c58b7bb 100644 (file)
 // default functionality for other systems, which in this case would
 // carry the constraint:
 //
-//     // +build !linux !darwin !cgo
+//     // +build !linux,!darwin !cgo
 //
 // Naming a file dns_windows.go will cause it to be included only when
 // building the package for Windows; similarly, math_386.s will be included