1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:24:39 -07:00

gc: fix mkbuiltin

Broken by Plan 9 changes.

R=ken2
CC=golang-dev
https://golang.org/cl/4896050
This commit is contained in:
Russ Cox 2011-08-17 14:54:51 -04:00
parent 42e6c03fc5
commit cf79411b1d
3 changed files with 8 additions and 4 deletions

View File

@ -65,3 +65,7 @@ opnames.h: mkopnames go.h
./mkopnames go.h >opnames.h ./mkopnames go.h >opnames.h
CLEANFILES+=*.[568] [568].out y1.tab.c yerr.h mkbuiltin1 builtin.c _builtin.c opnames.h CLEANFILES+=*.[568] [568].out y1.tab.c yerr.h mkbuiltin1 builtin.c _builtin.c opnames.h
mkbuiltin1: mkbuiltin1.$O
$(HOST_LD) -o $@ mkbuiltin1.$O -L"$(GOROOT)"/lib -lbio -l9 -lm $(HOST_LDFLAGS)

View File

@ -16,7 +16,7 @@ if [ -z "$GC" ]; then
exit 1 exit 1
fi fi
gcc -o mkbuiltin1 mkbuiltin1.c gomake mkbuiltin1
rm -f _builtin.c rm -f _builtin.c
for i in runtime unsafe for i in runtime unsafe
do do

View File

@ -10,7 +10,7 @@
void esc(char*); void esc(char*);
int void
main(int argc, char **argv) main(int argc, char **argv)
{ {
char *name; char *name;
@ -64,13 +64,13 @@ begin:
} }
esc(p); esc(p);
printf("\\n\"\n", p); printf("\\n\"\n");
} }
sysfatal("did not find end of imports\n"); sysfatal("did not find end of imports\n");
end: end:
printf("\t\"$$\\n\";\n"); printf("\t\"$$\\n\";\n");
return 0; exits(0);
} }
void void