• Russ Cox's avatar
    go/build: add BuildTags to Context, allow !tag · b5777571
    Russ Cox authored
    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.
    
    R=r, adg
    CC=golang-dev
    https://golang.org/cl/5554079
    b5777571
Name
Last commit
Last update
..
buildscript Loading commit data...
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.ccmd Loading commit data...
Make.clib Loading commit data...
Make.cmd Loading commit data...
Make.common Loading commit data...
Make.inc Loading commit data...
Make.pkg Loading commit data...
all-qemu.bash Loading commit data...
all.bash Loading commit data...
buildinfo.sh Loading commit data...
buildscript.sh Loading commit data...
clean.bash Loading commit data...
env.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...