diff --git a/src/cmd/dist/buildtool.go b/src/cmd/dist/buildtool.go index 8a3db32ad34..77cf41a3eb1 100644 --- a/src/cmd/dist/buildtool.go +++ b/src/cmd/dist/buildtool.go @@ -190,7 +190,7 @@ func bootstrapBuildTools() { xprintf("\n") } -var ssaRewriteFileSubstring = filepath.ToSlash("src/cmd/compile/internal/ssa/rewrite") +var ssaRewriteFileSubstring = filepath.FromSlash("src/cmd/compile/internal/ssa/rewrite") // isUnneededSSARewriteFile reports whether srcFile is a // src/cmd/compile/internal/ssa/rewriteARCHNAME.go file for an