blob: c09dab02a51831599558a0412dab2c4dca579a4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- A/src/cmd/go/internal/work/security.go 2018-11-02 21:23:31.000000000 +0000
+++ B/src/cmd/go/internal/work/security.go 2018-12-05 03:19:39.493257546 +0000
@@ -41,6 +41,7 @@
var validCompilerFlags = []*regexp.Regexp{
re(`-D([A-Za-z_].*)`),
+ re(`-L([^@\-].*)`),
re(`-F([^@\-].*)`),
re(`-I([^@\-].*)`),
re(`-O`),
@@ -128,6 +129,8 @@
}
var validLinkerFlags = []*regexp.Regexp{
+ re(`-I([^@\-].*)`),
+ re(`--sysroot=([^@\-].*)`),
re(`-F([^@\-].*)`),
re(`-l([^@\-].*)`),
re(`-L([^@\-].*)`),
|