1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:20:03 -07:00

cmd/compile: fix builtin generation

This was a refactoring bug during
'go tool compile', CL 10289.

Change-Id: Ibfd333be39ec72bba331fdf352df619cc21851a9
Reviewed-on: https://go-review.googlesource.com/10849
Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2015-06-09 14:12:39 -07:00
parent 2a5463e3a0
commit 442959ec47

View File

@ -46,7 +46,7 @@ func mkbuiltin(w io.Writer, name string) {
if err := exec.Command("go", "tool", "compile", "-A", "builtin/"+name+".go").Run(); err != nil { if err := exec.Command("go", "tool", "compile", "-A", "builtin/"+name+".go").Run(); err != nil {
log.Fatal(err) log.Fatal(err)
} }
obj := "name.o" obj := name + ".o"
defer os.Remove(obj) defer os.Remove(obj)
r, err := os.Open(obj) r, err := os.Open(obj)