From: Bobby Powers Date: Thu, 16 Feb 2012 18:31:46 +0000 (-0500) Subject: dist: add clang specific -Wno options X-Git-Tag: weekly.2012-02-22~189 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7c2bfa4f2cd591c618353bc3099678b0db6e8750;p=gostls13.git dist: add clang specific -Wno options Clang 3.1 has more warnings enabled by default than GCC. Combined with -Werror, they cause the build to fail unnecessarily. if the name of our compiler ends in "clang", add the necessary extra -Wno options. Ideally we would add these flags unconditionally, as GCC is supposed to ignore unknown -Wno flags, but apple's llvm-gcc doesn't. Fixes #2878. R=rsc, dave CC=golang-dev https://golang.org/cl/5673055 --- diff --git a/src/cmd/dist/build.c b/src/cmd/dist/build.c index 9d168b364f..f31c83ea7a 100644 --- a/src/cmd/dist/build.c +++ b/src/cmd/dist/build.c @@ -582,8 +582,12 @@ install(char *dir) splitfields(&gccargs, bstr(&b)); for(i=0; i