mirror of
https://github.com/golang/go
synced 2024-11-24 22:00:09 -07:00
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
This commit is contained in:
parent
87ac7c77c0
commit
aee6b1160e
@ -4,7 +4,7 @@
|
||||
char *template =
|
||||
"// generated by mkversion.c; do not edit.\n"
|
||||
"package runtime\n"
|
||||
"const defaultGoroot = \"%s\"\n"
|
||||
"const defaultGoroot = `%s`\n"
|
||||
"const theVersion = \"%s\"\n";
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user