From: Russ Cox Date: Wed, 24 Sep 2014 23:09:43 +0000 (-0400) Subject: net: only "build" empty.s in non-cgo mode X-Git-Tag: go1.4beta1~302 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d2b84dd941456751cd09363a1027746683818f09;p=gostls13.git net: only "build" empty.s in non-cgo mode In cgo mode it gets passed to gcc, and on ARM it appears that gcc does not support // comments. TBR=iant CC=golang-codereviews https://golang.org/cl/142640043 --- diff --git a/src/net/empty.s b/src/net/empty.s index a515c2fe29..f0b255a0cf 100644 --- a/src/net/empty.s +++ b/src/net/empty.s @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build !cgo + // This file is required to prevent compiler errors // when the package built with CGO_ENABLED=0. // Otherwise the compiler says: