From aec89a6db957df460fa288843cf835adde8ceefd Mon Sep 17 00:00:00 2001 From: Joe Poirier Date: Tue, 4 Oct 2011 15:07:28 +1100 Subject: [PATCH] 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 --- src/cmd/cgo/gcc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go index 04d95f0b9b0..90f4032b256 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 == "" {