e0f69f36ea
Previously the libgo Makefile explicitly listed the set of files to compile for each package. For packages that use build tags, this required a lot of awkward automake conditionals in the Makefile. This CL changes the build to look at the build tags in the files. The new shell script libgo/match.sh does the matching. This required adjusting a lot of build tags, and removing some files that are never used. I verified that the exact same sets of files are compiled on amd64 GNU/Linux. I also tested the build on i386 Solaris. Writing match.sh revealed some bugs in the build tag handling that already exists, in a slightly different form, in the gotest shell script. This CL fixes those problems as well. The old code used automake conditionals to handle systems that were missing strerror_r and wait4. Rather than deal with those in Go, those functions are now implemented in runtime/go-nosys.c when necessary, so the Go code can simply assume that they exist. The os testsuite looked for dir_unix.go, which was never built for gccgo and has now been removed. I changed the testsuite to look for dir.go instead. Reviewed-on: https://go-review.googlesource.com/25546 From-SVN: r239189 |
||
---|---|---|
.. | ||
exec | ||
signal | ||
user | ||
dir_largefile.go | ||
dir_plan9.go | ||
dir_regfile.go | ||
dir.go | ||
doc.go | ||
env_test.go | ||
env_unix_test.go | ||
env.go | ||
error_plan9.go | ||
error_test.go | ||
error_unix_test.go | ||
error_unix.go | ||
error_windows_test.go | ||
error_windows.go | ||
error.go | ||
exec_plan9.go | ||
exec_posix.go | ||
exec_unix.go | ||
exec_windows.go | ||
exec.go | ||
export_test.go | ||
file_plan9.go | ||
file_posix.go | ||
file_unix.go | ||
file.go | ||
getwd_darwin.go | ||
getwd.go | ||
os_test.go | ||
os_unix_test.go | ||
path_plan9.go | ||
path_test.go | ||
path_unix.go | ||
path_windows.go | ||
path.go | ||
pipe_bsd.go | ||
pipe_linux.go | ||
pipe_test.go | ||
proc.go | ||
stat_atim.go | ||
stat_atimespec.go | ||
stat_dragonfly.go | ||
stat_nacl.go | ||
stat_plan9.go | ||
stat_solaris.go | ||
stat.go | ||
sticky_bsd.go | ||
sticky_notbsd.go | ||
str.go | ||
sys_bsd.go | ||
sys_darwin.go | ||
sys_freebsd.go | ||
sys_linux.go | ||
sys_nacl.go | ||
sys_plan9.go | ||
sys_uname.go | ||
sys_unix.go | ||
types_plan9.go | ||
types_unix.go | ||
types_windows.go | ||
types.go | ||
wait_unimp.go | ||
wait_wait6.go | ||
wait_waitid.go |