chrome/android still used system gcc as host compiler, and system gcc is
gcc 4.6 on Ubuntu Precise. This is too old.
Instead, use clang by default as host compiler (except when building for
AOSP, see http://crbug.com/377684 for that). This is controlled by a new
gyp variable host_clang, which only has an effect if clang=0. The existing
clang gyp variable means "use clang for everything"; if it's not set then
host_clang means "use clang for host compiles".
If your system gcc is 4.8+ and you don't want to use clang, you can set
host_clang=0 to use system gcc for host compiles instead.
In host_clang mode, our clang plugins currently aren't used (I figure if you
want plugins, you can just use clang=1). clang_warning_flags on the other
hand are used, to make sure the build stays warning-free.
BUG=360311
R=hans@chromium.org
Review URL: https://codereview.chromium.org/430383002
git-svn-id: http://src.chromium.org/svn/trunk/src/build@287386 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
In addition to disabling warnings, this does turn on a few warnings that weren't
on before (-Wheader-hygiene, -Wstring-conversions). I'll see how our bot copes,
if it's too horrible I might revert this again for a bit.
BUG=82385
NOTRY=true
Review URL: https://codereview.chromium.org/419963004
git-svn-id: http://src.chromium.org/svn/trunk/src/build@287237 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Previously, every gyp file that wanted to set clang warnings had to check
for clang==1 and then set cflags and xcode_settings.WARNING_CFLAGS. Factor
this out, so that targets only need to set clang_warning_flags for warnings
that apply to all platforms. (Per-platform flags still need to be set manually.)
This removes existing duplication from gyp files, and prevents adding more
duplication when trying to add the same warning flags for clang/win.
BUG=82385
R=hans@chromium.org, scottmg@chromium.org
TBR=various owners
Review URL: https://codereview.chromium.org/437543007
git-svn-id: http://src.chromium.org/svn/trunk/src/build@287092 4ff67af0-8c30-449e-8e8b-ad334ec8d88c