libgo/go/go/build: use syslist.go from the gc stdlib.

If cmd/go is rebuilt using -compiler gccgo the version of go/build that is linked into that cmd/go will not function properly as the list of file suffixes know as operating systems or architectures is incorrect.

From-SVN: r204794
This commit is contained in:
Ian Lance Taylor 2013-11-14 18:07:31 +00:00
parent 6eeef4cc67
commit 9572918137
3 changed files with 10 additions and 20 deletions

View File

@ -1300,7 +1300,7 @@ go_go_build_files = \
go/go/build/build.go \
go/go/build/doc.go \
go/go/build/read.go \
syslist.go
go/go/build/syslist.go
go_go_doc_files = \
go/go/doc/comment.go \
go/go/doc/doc.go \
@ -2777,15 +2777,6 @@ go/build/check: $(CHECK_DEPS)
@$(CHECK)
.PHONY: go/build/check
syslist.go: s-syslist; @true
s-syslist: Makefile
echo '// Generated automatically by make.' >syslist.go.tmp
echo 'package build' >>syslist.go.tmp
echo 'const goosList = "$(GOOS)"' >>syslist.go.tmp
echo 'const goarchList = "$(GOARCH)"' >>syslist.go.tmp
$(SHELL) $(srcdir)/../move-if-change syslist.go.tmp syslist.go
$(STAMP) $@
@go_include@ go/doc.lo.dep
go/doc.lo.dep: $(go_go_doc_files)
$(BUILDDEPS)

View File

@ -1477,7 +1477,7 @@ go_go_build_files = \
go/go/build/build.go \
go/go/build/doc.go \
go/go/build/read.go \
syslist.go
go/go/build/syslist.go
go_go_doc_files = \
go/go/doc/comment.go \
@ -5144,15 +5144,6 @@ go/build/check: $(CHECK_DEPS)
@$(CHECK)
.PHONY: go/build/check
syslist.go: s-syslist; @true
s-syslist: Makefile
echo '// Generated automatically by make.' >syslist.go.tmp
echo 'package build' >>syslist.go.tmp
echo 'const goosList = "$(GOOS)"' >>syslist.go.tmp
echo 'const goarchList = "$(GOARCH)"' >>syslist.go.tmp
$(SHELL) $(srcdir)/../move-if-change syslist.go.tmp syslist.go
$(STAMP) $@
@go_include@ go/doc.lo.dep
go/doc.lo.dep: $(go_go_doc_files)
$(BUILDDEPS)

View File

@ -0,0 +1,8 @@
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package build
const goosList = "darwin dragonfly freebsd linux netbsd openbsd plan9 windows solaris "
const goarchList = "386 amd64 arm "