]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: accept "//+build" with no spaces, like go/build
authorRuss Cox <rsc@golang.org>
Mon, 8 Feb 2016 12:08:14 +0000 (07:08 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 19 Feb 2016 01:37:51 +0000 (01:37 +0000)
commit9aa630faa868fde13af74e5b22ddba89a635d837
tree4b984c7aaa21c3dac20c0fb1c6892192a024d46f
parentfe5eac63c4b8d8f9d541d40f9055c3e4d4454d67
cmd/dist: accept "//+build" with no spaces, like go/build

The go/build parser accepts "//+build", with no spaces.
Make the cmd/dist bootstrap parser do the same.
While in theory we should always use the space form,
I copied some code that did not into the standard tree,
and I was very confused that 'go test' had had no problem
but then make.bash died.

(As a reminder, cmd/dist does not use go/build because
cmd/dist must build against earlier versions of Go.)

Change-Id: I90a18014bd878247b8811487e5c1a7589260cbfc
Reviewed-on: https://go-review.googlesource.com/19618
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/build.go