Skip to content

Commit 02224c8

Browse files
cmd/go: accept "-F dir" in compiler flags
Fixes #51008 Change-Id: I5e47c7be59d4aae1d5059d99231422212cffa23a Reviewed-on: https://go-review.googlesource.com/c/go/+/383217 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com>
1 parent 6e56fce commit 02224c8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/cmd/go/internal/work/security.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ var validCompilerFlagsWithNextArg = []string{
131131
"-D",
132132
"-U",
133133
"-I",
134+
"-F",
134135
"-framework",
135136
"-include",
136137
"-isysroot",

src/cmd/go/internal/work/security_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var goodCompilerFlags = [][]string{
1515
{"-Ufoo"},
1616
{"-Ufoo1"},
1717
{"-F/Qt"},
18+
{"-F", "/Qt"},
1819
{"-I/"},
1920
{"-I/etc/passwd"},
2021
{"-I."},

0 commit comments

Comments
 (0)