Commit 0c026c45 authored by Anthony Martin's avatar Anthony Martin Committed by Russ Cox

cmd/dist: update for new flag parsing on Plan 9

R=golang-dev, seed, rsc
CC=golang-dev
https://golang.org/cl/7069053
parent d795f077
...@@ -1053,8 +1053,12 @@ shouldbuild(char *file, char *dir) ...@@ -1053,8 +1053,12 @@ shouldbuild(char *file, char *dir)
// The main exception is libmach which has been modified // The main exception is libmach which has been modified
// in various places to support Go object files. // in various places to support Go object files.
if(streq(gohostos, "plan9")) { if(streq(gohostos, "plan9")) {
if(streq(dir, "lib9") && !hassuffix(file, "lib9/goos.c")) if(streq(dir, "lib9")) {
name = lastelem(file);
if(streq(name, "goos.c") || streq(name, "flag.c"))
return 1;
return 0; return 0;
}
if(streq(dir, "libbio")) if(streq(dir, "libbio"))
return 0; return 0;
} }
......
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