Commit 8b3b1edc authored by Yongjian Xu's avatar Yongjian Xu Committed by Russ Cox

mkbuiltin: generate builtin.c directly

R=golang-dev, rsc
https://golang.org/cl/173041
parent d5b7d776
...@@ -55,7 +55,7 @@ y.tab.c: y.tab.h ...@@ -55,7 +55,7 @@ y.tab.c: y.tab.h
test -f y.tab.c && touch y.tab.c test -f y.tab.c && touch y.tab.c
builtin.c: runtime.go unsafe.go mkbuiltin1.c mkbuiltin builtin.c: runtime.go unsafe.go mkbuiltin1.c mkbuiltin
./mkbuiltin >builtin.c || \ ./mkbuiltin || \
(echo 'mkbuiltin failed; using bootstrap copy of builtin.c'; cp builtin.c.boot builtin.c) (echo 'mkbuiltin failed; using bootstrap copy of builtin.c'; cp builtin.c.boot builtin.c)
subr.$O: opnames.h subr.$O: opnames.h
......
...@@ -35,6 +35,4 @@ ken | r | rsc) ...@@ -35,6 +35,4 @@ ken | r | rsc)
fi fi
esac esac
cat _builtin.c mv _builtin.c builtin.c
rm -f _builtin.c
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