]> Cypherpunks repositories - gostls13.git/commit
cmd/go: in cgoflags, permit -DX1, prohibit -Wp,-D,opt
authorIan Lance Taylor <iant@golang.org>
Tue, 3 Nov 2020 05:31:06 +0000 (21:31 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 3 Nov 2020 21:43:30 +0000 (21:43 +0000)
commitda7aa86917811a571e6634b45a457f918b8e6561
tree9a8d683515a24ae600688d2afa7cbda9d87c06ac
parentecd7b7e991d802db2bb63ccf7cede83f62e4e1c9
cmd/go: in cgoflags, permit -DX1, prohibit -Wp,-D,opt

Restrict -D and -U to ASCII C identifiers, but do permit trailing digits.
When using -Wp, prohibit commas in -D values.

Change-Id: Ibfc4dfdd6e6c258e131448e7682610c44eee9492
Reviewed-on: https://go-review.googlesource.com/c/go/+/267277
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/work/security.go
src/cmd/go/internal/work/security_test.go