1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:34:48 -07:00

go/build: fix boolean negation

!(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
This commit is contained in:
Russ Cox 2012-06-13 16:24:56 -04:00
parent 51fe5444fa
commit 503aa6505e

View File

@ -100,7 +100,7 @@
// 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