mirror of
https://github.com/golang/go
synced 2024-11-23 07:10:05 -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:
parent
2a5463e3a0
commit
442959ec47
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user