mirror of
https://github.com/golang/go
synced 2024-11-25 10:17:57 -07: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
@ -236,7 +236,7 @@ func splitQuoted(s string) (r []string, err os.Error) {
|
||||
return args, err
|
||||
}
|
||||
|
||||
var safeBytes = []byte("+-.,/0123456789=ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz")
|
||||
var safeBytes = []byte(`+-.,/0123456789:=ABCDEFGHIJKLMNOPQRSTUVWXYZ\_abcdefghijklmnopqrstuvwxyz`)
|
||||
|
||||
func safeName(s string) bool {
|
||||
if s == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user