Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Issue 385823002: Make it possible for Android GN host builds to use Clang. (Closed)

Created:
6 years, 5 months ago by brettw
Modified:
6 years, 5 months ago
Reviewers:
Nico
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Make it possible for Android GN host builds to use Clang. The problem was that the toolchain definitions had an is_clang block in them, but this is only evaluated in the context of the default toolchain (so false for and Android build). But then when we were re-evaluating the build config for the host compile, it was forcing clang to true which was causing the clang flags to be set. This changes the way we default the is_clang value. Forcing it to true prevents it from being overridden manually. In some cases, like mac, this is pointless. In other cases like Linux, we may want to turn it on and off. Changing this definition allows us to toggle it on and off for different toolchains as we desire. Ideally I think the way of defining toolchains would be different to make this a bit more flexible, I'll think about this. But this will work for now. R=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282685

Patch Set 1 #

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -39 lines) Patch
M breakpad/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M build/config/BUILDCONFIG.gn View 1 4 chunks +15 lines, -11 lines 1 comment Download
M build/toolchain/gcc_toolchain.gni View 1 3 chunks +6 lines, -1 line 0 comments Download
M build/toolchain/linux/BUILD.gn View 1 2 chunks +44 lines, -26 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
brettw
To enable for Linux we'd add it to the list of conditions in the is_clang ...
6 years, 5 months ago (2014-07-10 23:00:11 UTC) #1
Nico
rslgtm https://codereview.chromium.org/385823002/diff/20001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/385823002/diff/20001/build/config/BUILDCONFIG.gn#newcode34 build/config/BUILDCONFIG.gn:34: is_clang = (os == "mac" || os == ...
6 years, 5 months ago (2014-07-10 23:06:49 UTC) #2
Nico
CL description should be "make it _possible_ for …", right?
6 years, 5 months ago (2014-07-10 23:07:10 UTC) #3
brettw
6 years, 5 months ago (2014-07-11 20:27:21 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r282685.

Powered by Google App Engine
This is Rietveld 408576698