1
0
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:
Russ Cox 2012-03-01 11:46:13 -05:00
parent b14a6643dc
commit 03769efe41

View File

@ -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");
}