]> Cypherpunks repositories - gostls13.git/commitdiff
cgo: allow Window's specific path characters in flag directives.
authorJoe Poirier <jdpoirier@gmail.com>
Tue, 4 Oct 2011 04:07:28 +0000 (15:07 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 4 Oct 2011 04:07:28 +0000 (15:07 +1100)
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

index 04d95f0b9b0bbd7ad596b34aaac58e883b6e65ad..90f4032b256c91e1ac4aeab08d9114e187e9bcd4 100644 (file)
@@ -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 == "" {