mirror of
https://github.com/golang/go
synced 2024-11-24 00:40:12 -07:00
cmd/internal/gc: mv builtins builtin
This directory is processed by mkbuiltin.go and generates builtin.go. It should be named builtin too, not builtins, both for consistency and because file and directory names in general are singular unless forced otherwise. Commented on CL 6233 too. Change-Id: Ic5d3671443ae9292b69fda118f61a11c88d823fa Reviewed-on: https://go-review.googlesource.com/7660 Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
1fdd1d181b
commit
e5be6432a8
@ -50,7 +50,7 @@ func main() {
|
||||
|
||||
// Compile .go file, import data from .6 file, and write Go string version.
|
||||
func mkbuiltin(w io.Writer, gochar string, name string) {
|
||||
if err := exec.Command("go", "tool", gochar+"g", "-A", "builtins/"+name+".go").Run(); err != nil {
|
||||
if err := exec.Command("go", "tool", gochar+"g", "-A", "builtin/"+name+".go").Run(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
obj := fmt.Sprintf("%s.%s", name, gochar)
|
||||
|
Loading…
Reference in New Issue
Block a user