]> Cypherpunks repositories - gostls13.git/commit
cmd/go: allow -I= and -I$SYSROOT in cgo CFLAGS
authorGregory Man <man.gregory@gmail.com>
Sun, 22 Sep 2019 10:30:45 +0000 (13:30 +0300)
committerJay Conrod <jayconrod@google.com>
Tue, 24 Sep 2019 14:04:51 +0000 (14:04 +0000)
commitc4fbaee8596bbab16ced99c1a1cc3229c37d4934
tree394aad9db0118ced34812a9d79075c833458814c
parent2dfff3633b839a913bd2f427cd362ab07194b052
cmd/go: allow -I= and -I$SYSROOT in cgo CFLAGS

Current checkFlags() didn't allow any not safe charactars in arguments.
In GCC "=" in arguments will be replaced with sysroot prefix, and used
by users to work with different SDK versions.

This CL allow to use "=" and $SYSROOT with -I argument.

Fixes #34449

Change-Id: I3d8b2b9d13251e454ea18e9d34a94b87c373c7b4
Reviewed-on: https://go-review.googlesource.com/c/go/+/196783
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/work/security.go
src/cmd/go/internal/work/security_test.go