• Russ Cox's avatar
    build: add build comments to core packages · 2715956f
    Russ Cox authored
    The go/build package already recognizes
    system-specific file names like
    
            mycode_darwin.go
            mycode_darwin_386.go
            mycode_386.s
    
    However, it is also common to write files that
    apply to multiple architectures, so a recent CL added
    to go/build the ability to process comments
    listing a set of conditions for building.  For example:
    
            // +build darwin freebsd openbsd/386
    
    says that this file should be compiled only on
    OS X, FreeBSD, or 32-bit x86 OpenBSD systems.
    
    These conventions are not yet documented
    (hence this long CL description).
    
    This CL adds build comments to the multi-system
    files in the core library, a step toward making it
    possible to use go/build to build them.
    
    With this change go/build can handle crypto/rand,
    exec, net, path/filepath, os/user, and time.
    
    os and syscall need additional adjustments.
    
    R=golang-dev, r, gri, r, gustavo
    CC=golang-dev
    https://golang.org/cl/5011046
    2715956f
Name
Last commit
Last update
..
inotify Loading commit data...
signal Loading commit data...
user Loading commit data...
Makefile Loading commit data...
dir_plan9.go Loading commit data...
dir_unix.go Loading commit data...
dir_windows.go Loading commit data...
env.go Loading commit data...
env_plan9.go Loading commit data...
env_test.go Loading commit data...
env_unix.go Loading commit data...
env_windows.go Loading commit data...
error.go Loading commit data...
error_plan9.go Loading commit data...
error_posix.go Loading commit data...
exec.go Loading commit data...
exec_plan9.go Loading commit data...
exec_posix.go Loading commit data...
exec_unix.go Loading commit data...
exec_windows.go Loading commit data...
file.go Loading commit data...
file_plan9.go Loading commit data...
file_posix.go Loading commit data...
file_unix.go Loading commit data...
file_windows.go Loading commit data...
getwd.go Loading commit data...
mkunixsignals.sh Loading commit data...
os_test.go Loading commit data...
path.go Loading commit data...
path_plan9.go Loading commit data...
path_test.go Loading commit data...
path_unix.go Loading commit data...
path_windows.go Loading commit data...
proc.go Loading commit data...
stat_darwin.go Loading commit data...
stat_freebsd.go Loading commit data...
stat_linux.go Loading commit data...
stat_openbsd.go Loading commit data...
stat_plan9.go Loading commit data...
stat_windows.go Loading commit data...
str.go Loading commit data...
sys_bsd.go Loading commit data...
sys_linux.go Loading commit data...
sys_plan9.go Loading commit data...
sys_windows.go Loading commit data...
time.go Loading commit data...
types.go Loading commit data...