Descriptiongo/build: add BuildTags to Context, allow !tag
This lets the client of go/build specify additional tags that
can be recognized in a // +build directive. For example,
a build for a custom environment like App Engine might
include "appengine" in the BuildTags list, so that packages
can be written with some files saying
// +build appengine (build only on app engine)
or
// +build !appengine (build only when NOT on app engine)
App Engine here is just a hypothetical context. I plan to use
this in the cmd/go sources to distinguish the bootstrap version
of cmd/go (which will not use networking) from the full version
using a custom tag. It might also be useful in App Engine.
Also, delete Build and Script, which we did not end up using for
cmd/go and which never got turned on for real in goinstall.
Patch Set 1 #Patch Set 2 : diff -r 9959aca91c87 https://code.google.com/p/go/ #Patch Set 3 : diff -r 06129c716fbb https://code.google.com/p/go/ #
Total comments: 3
Patch Set 4 : diff -r bc07ad621734 https://go.googlecode.com/hg/ #
Total comments: 12
Patch Set 5 : diff -r 802d4c3a4254 https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 6 : diff -r fff00f608958 https://go.googlecode.com/hg/ #Patch Set 7 : diff -r d9358d10ab37 https://go.googlecode.com/hg/ #
MessagesTotal messages: 13
|