}
// To recap, so far we have built the new toolchain
- // (cmd/asm, cmd/cgo, cmd/compile, cmd/link)
+ // (cmd/asm, cmd/compile, cmd/link)
// using Go 1.4's toolchain and go command.
// Then we built the new go command (as go_bootstrap)
// using the new toolchain and our own build logic (above).
var bootstrapDirs = []string{
"cmd/asm",
"cmd/asm/internal/...",
- "cmd/cgo",
"cmd/compile",
"cmd/compile/internal/...",
"cmd/internal/archive",
mkbuildcfg(pathf("%s/src/internal/buildcfg/zbootstrap.go", goroot))
mkobjabi(pathf("%s/src/cmd/internal/objabi/zbootstrap.go", goroot))
+ mkzdefaultcc("", pathf("%s/src/cmd/cgo/zdefaultcc.go", goroot))
// Use $GOROOT/pkg/bootstrap as the bootstrap workspace root.
// We use a subdirectory of $GOROOT/pkg because that's the
}
xmkdirall(dst)
- if path == "cmd/cgo" {
- // Write to src because we need the file both for bootstrap
- // and for later in the main build.
- mkzdefaultcc("", pathf("%s/zdefaultcc.go", src))
- mkzdefaultcc("", pathf("%s/zdefaultcc.go", dst))
- }
return nil
}