mirror of
https://github.com/golang/go
synced 2024-11-22 10:24:41 -07:00
cmd/dist: recognize CC="ccache clang" as clang
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5711052
This commit is contained in:
parent
b14a6643dc
commit
03769efe41
2
src/cmd/dist/build.c
vendored
2
src/cmd/dist/build.c
vendored
@ -586,7 +586,7 @@ install(char *dir)
|
||||
splitfields(&gccargs, bstr(&b));
|
||||
for(i=0; i<nelem(proto_gccargs); i++)
|
||||
vadd(&gccargs, proto_gccargs[i]);
|
||||
if(xstrstr(gccargs.p[0], "clang") != nil) {
|
||||
if(xstrstr(bstr(&b), "clang") != nil) {
|
||||
vadd(&gccargs, "-Wno-dangling-else");
|
||||
vadd(&gccargs, "-Wno-unused-value");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user