mirror of
https://github.com/golang/go
synced 2024-11-21 17:24:42 -07:00
go/build: allow colon in #cgo flags
This makes it possible to say -I c:/foo on Windows. Fixes #2683 comment #3. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5540043
This commit is contained in:
parent
eb94327068
commit
fb036824df
@ -476,7 +476,7 @@ func (ctxt *Context) saveCgo(filename string, di *DirInfo, cg *ast.CommentGroup)
|
||||
return nil
|
||||
}
|
||||
|
||||
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