Commit 03769efe authored by Russ Cox's avatar Russ Cox

cmd/dist: recognize CC="ccache clang" as clang

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5711052
parent b14a6643
......@@ -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");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment