From: Joe Poirier Date: Tue, 4 Oct 2011 04:07:28 +0000 (+1100) Subject: cgo: allow Window's specific path characters in flag directives. X-Git-Tag: weekly.2011-10-06~38 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=aec89a6db957df460fa288843cf835adde8ceefd;p=gostls13.git 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 --- diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go index 04d95f0b9b..90f4032b25 100644 --- a/src/cmd/cgo/gcc.go +++ b/src/cmd/cgo/gcc.go @@ -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 == "" {