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
This commit is contained in:
Russ Cox 2014-09-24 19:09:43 -04:00
parent 3c94b1d305
commit d2b84dd941
1 changed files with 2 additions and 0 deletions

View File

@ -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: