Commit aee6b116 authored by Peter Mundy's avatar Peter Mundy Committed by Russ Cox

runtime: fix mkversion to output valid path separators

In a GOROOT path a backslash is a path separator
not an escape character. For example, `C:\go`.
Fixes gotest error:
version.go:3: unknown escape sequence: g

R=rsc
CC=golang-dev
https://golang.org/cl/4437076
parent 87ac7c77
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
char *template = char *template =
"// generated by mkversion.c; do not edit.\n" "// generated by mkversion.c; do not edit.\n"
"package runtime\n" "package runtime\n"
"const defaultGoroot = \"%s\"\n" "const defaultGoroot = `%s`\n"
"const theVersion = \"%s\"\n"; "const theVersion = \"%s\"\n";
void void
......
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