]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: accept "-F dir" in compiler flags
authorIan Lance Taylor <iant@golang.org>
Fri, 4 Feb 2022 20:22:19 +0000 (12:22 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 4 Feb 2022 20:44:18 +0000 (20:44 +0000)
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>
src/cmd/go/internal/work/security.go
src/cmd/go/internal/work/security_test.go

index e9b9f6c6c0f24417652309b4d2b13b098677db73..d1e2c673fadd8ef629514e56773bffc38122fbcc 100644 (file)
@@ -131,6 +131,7 @@ var validCompilerFlagsWithNextArg = []string{
        "-D",
        "-U",
        "-I",
+       "-F",
        "-framework",
        "-include",
        "-isysroot",
index 8d4be0abfc09e6c21c9a51ea6a32696c4fa6e259..d2aeb54e0cea144155a0beba516be273418aabe6 100644 (file)
@@ -15,6 +15,7 @@ var goodCompilerFlags = [][]string{
        {"-Ufoo"},
        {"-Ufoo1"},
        {"-F/Qt"},
+       {"-F", "/Qt"},
        {"-I/"},
        {"-I/etc/passwd"},
        {"-I."},