From fb036824df95f5d127064b3897e3e74fb9691b29 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 12 Jan 2012 11:05:54 -0800 Subject: [PATCH] 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 --- src/pkg/go/build/dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/go/build/dir.go b/src/pkg/go/build/dir.go index 265261f22e..7f24754298 100644 --- a/src/pkg/go/build/dir.go +++ b/src/pkg/go/build/dir.go @@ -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 == "" { -- 2.50.0