Commit a039bf20 authored by Alex Brainman's avatar Alex Brainman

cmd/dist: generate cmd/cgo/zdefaultcc.go on windows (fixes windows build)

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/12404043
parent 16c9d361
......@@ -36,7 +36,10 @@ mkzdefaultcc(char *dir, char *file)
// Convert file name to replace.
binit(&b);
bwritestr(&b, file);
bsubst(&b, "/go/zdefaultcc.go", "/cgo/zdefaultcc.go");
if(slash[0] == '/')
bsubst(&b, "/go/zdefaultcc.go", "/cgo/zdefaultcc.go");
else
bsubst(&b, "\\go\\zdefaultcc.go", "\\cgo\\zdefaultcc.go");
writefile(&out, bstr(&b), 0);
bfree(&b);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment