DescriptionUse clang as default host compiler when cross-compiling
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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287386
Patch Set 1 #Patch Set 2 : step 2 #Patch Set 3 : rebase #Patch Set 4 : foo #Patch Set 5 : . #Patch Set 6 : . #Patch Set 7 : aosp? #Patch Set 8 : . #
Total comments: 1
Patch Set 9 : . #Messages
Total messages: 6 (0 generated)
|