From 442959ec474c78ee082f518eac8ce60527c9a993 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 9 Jun 2015 14:12:39 -0700 Subject: [PATCH] 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 --- src/cmd/compile/internal/gc/mkbuiltin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/gc/mkbuiltin.go b/src/cmd/compile/internal/gc/mkbuiltin.go index f4569b48c21..ea3877f280e 100644 --- a/src/cmd/compile/internal/gc/mkbuiltin.go +++ b/src/cmd/compile/internal/gc/mkbuiltin.go @@ -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 { log.Fatal(err) } - obj := "name.o" + obj := name + ".o" defer os.Remove(obj) r, err := os.Open(obj)