Commit f7d754fc authored by Anthony Martin's avatar Anthony Martin Committed by Rob Pike

build: exclude packages that fail on Plan 9 (for now)

All but two packages depend on net:
        debug/proc
        os/signal

With this change, we can produce
a working build with GOOS=plan9.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4639053
parent f22e5cfc
...@@ -182,6 +182,36 @@ DIRS+=\ ...@@ -182,6 +182,36 @@ DIRS+=\
endif endif
ifeq ($(GOOS),plan9)
NOPLAN9BUILD=\
crypto/tls\
debug/proc\
exp/gui/x11\
expvar\
http\
http/cgi\
http/fcgi\
http/httptest\
http/pprof\
http/spdy\
mail\
mime/multipart\
net\
net/dict\
net/textproto\
netchan\
os/signal\
rpc\
rpc/jsonrpc\
smtp\
syslog\
websocket\
../cmd/godoc\
../cmd/goinstall\
DIRS:=$(filter-out $(NOPLAN9BUILD),$(DIRS))
endif
NOTEST+=\ NOTEST+=\
crypto\ crypto\
crypto/openpgp/error\ crypto/openpgp/error\
......
...@@ -10,6 +10,10 @@ ifeq ($(GOARCH),arm) ...@@ -10,6 +10,10 @@ ifeq ($(GOARCH),arm)
ENABLED:=0 ENABLED:=0
endif endif
ifeq ($(GOOS),plan9)
ENABLED:=0
endif
ifeq ($(DISABLE_CGO),1) ifeq ($(DISABLE_CGO),1)
ENABLED:=0 ENABLED:=0
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment