mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cgo: allow Window's specific path characters in flag directives.
Example: #cgo windows LDFLAGS: -LC:\\WINDOWS\\system32 R=alex.brainman, go.peter.90, golang-dev, rsc CC=golang-dev https://golang.org/cl/5154042
This commit is contained in:
parent
2cef85f8a1
commit
aec89a6db9
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ func splitQuoted(s string) (r []string, err os.Error) {
|
||||||
return args, err
|
return args, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var safeBytes = []byte("+-.,/0123456789=ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz")
|
var safeBytes = []byte(`+-.,/0123456789:=ABCDEFGHIJKLMNOPQRSTUVWXYZ\_abcdefghijklmnopqrstuvwxyz`)
|
||||||
|
|
||||||
func safeName(s string) bool {
|
func safeName(s string) bool {
|
||||||
if s == "" {
|
if s == "" {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue