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

Issue 1983613002: Rework the way ChromiumOS toolchains will work in GN. (Closed)

Created:
4 years, 7 months ago by Dirk Pranke
Modified:
4 years, 7 months ago
CC:
chromium-reviews, Nico, scottmg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rework the way ChromiumOS toolchains will work in GN. This CL reworks the way ChromiumOS toolchains work in GN, in such a way that they might actually have all the flags they need for the ChromiumOS ebuild files to be able to set all of the flags it needs (though there are still some missing GN build_args). Specifically, the ebuild will now need to set the following in args.gn: host_toolchain = "//build/toolchain/cros:host" v8_snapshot_toolchain = "//build/toolchain/cros:v8_snapshot" in order to support boards other than the amd64-generic build. The ebuild should actually set these variables all the time; it just happens that the amd64-generic build will work at the moment without the variables, but that will not be guaranteed to remain true in the future. This CL also adds the following optional build args that do pretty much what you'd expect them to do: cros_target_ld, cros_target_extra_cflags, cros_target_extra_cppflags, cros_target_extra_cxx_flags, cros_target_extra_ldflags, cros_host_ar, cros_host_cc, cros_host_cxx, cros_host_ld, cros_host_is_clang, cros_host_extra_cflags, cros_host_extra_cppflags, cros_host_extra_cxx_flags, cros_host_extra_ldflags, cros_v8_snapshot_ar, cros_v8_snapshot_cc, cros_v8_snapshot_cxx, cros_v8_snapshot_ld, cros_v8_snapshot_extra_cflags, cros_v8_snapshot_extra_cppflags, cros_v8_snapshot_extra_cxx_flags, cros_v8_snapshot_extra_ldflags This CL should be backwards-compatible with the existing linux desktop ChromiumOS builds and the amd64-generic simplechrome/ebuild (i.e., it can be landed and reverted w/o requiring any other changes to be made). It is a big hammer intended to un-block the ChromiumOS GN migration while we continue thinking about how to best support ChromiumOS. R=stevenjb@chromium.org, brettw@chromium.org BUG=608596, 595653 Committed: https://crrev.com/8ad2f49335feaddddbd3f318fc6f4d13eb52760b Cr-Commit-Position: refs/heads/master@{#394534}

Patch Set 1 #

Total comments: 11

Patch Set 2 : update w/ review comments #

Patch Set 3 : remove unneeded TODO #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -26 lines) Patch
M build/toolchain/cros/BUILD.gn View 1 2 1 chunk +95 lines, -19 lines 2 comments Download
M build/toolchain/gcc_toolchain.gni View 1 10 chunks +46 lines, -7 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
Dirk Pranke
I need to think about how to land both https://codereview.chromium.org/1979883002/ and this CL so that ...
4 years, 7 months ago (2016-05-15 01:37:29 UTC) #1
Dirk Pranke
On 2016/05/15 01:37:29, Dirk Pranke wrote: > I need to think about how to land ...
4 years, 7 months ago (2016-05-16 00:23:14 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1983613002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1983613002/1
4 years, 7 months ago (2016-05-16 00:23:36 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-16 02:13:18 UTC) #6
stevenjb
I'm really not the right person to review this. I don't see any obvious problems ...
4 years, 7 months ago (2016-05-16 19:34:10 UTC) #8
stevenjb
I tested this, including with https://codereview.chromium.org/1979883002/, and everything seems to work great! LGTM
4 years, 7 months ago (2016-05-16 23:56:25 UTC) #9
ilja
I am sorry, I looked at it, but I don't know enough.
4 years, 7 months ago (2016-05-17 04:17:27 UTC) #10
hashimoto
https://codereview.chromium.org/1983613002/diff/1/build/toolchain/cros/BUILD.gn File build/toolchain/cros/BUILD.gn (right): https://codereview.chromium.org/1983613002/diff/1/build/toolchain/cros/BUILD.gn#newcode84 build/toolchain/cros/BUILD.gn:84: # build/toolchain/cros:target in BUILDCONFIG.gn How are we going to ...
4 years, 7 months ago (2016-05-17 06:26:31 UTC) #11
Dirk Pranke
https://codereview.chromium.org/1983613002/diff/1/build/toolchain/cros/BUILD.gn File build/toolchain/cros/BUILD.gn (right): https://codereview.chromium.org/1983613002/diff/1/build/toolchain/cros/BUILD.gn#newcode108 build/toolchain/cros/BUILD.gn:108: ar = cros_host_ar On 2016/05/17 06:26:31, hashimoto wrote: > ...
4 years, 7 months ago (2016-05-17 21:37:46 UTC) #12
hashimoto
lgtm https://codereview.chromium.org/1983613002/diff/1/build/toolchain/cros/BUILD.gn File build/toolchain/cros/BUILD.gn (right): https://codereview.chromium.org/1983613002/diff/1/build/toolchain/cros/BUILD.gn#newcode84 build/toolchain/cros/BUILD.gn:84: # build/toolchain/cros:target in BUILDCONFIG.gn On 2016/05/17 06:26:31, hashimoto ...
4 years, 7 months ago (2016-05-18 03:24:02 UTC) #13
Dirk Pranke
https://codereview.chromium.org/1983613002/diff/1/build/toolchain/cros/BUILD.gn File build/toolchain/cros/BUILD.gn (right): https://codereview.chromium.org/1983613002/diff/1/build/toolchain/cros/BUILD.gn#newcode84 build/toolchain/cros/BUILD.gn:84: # build/toolchain/cros:target in BUILDCONFIG.gn On 2016/05/18 03:24:01, hashimoto wrote: ...
4 years, 7 months ago (2016-05-18 04:12:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1983613002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1983613002/40001
4 years, 7 months ago (2016-05-18 19:19:57 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-18 20:33:19 UTC) #20
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8ad2f49335feaddddbd3f318fc6f4d13eb52760b Cr-Commit-Position: refs/heads/master@{#394534}
4 years, 7 months ago (2016-05-18 20:34:33 UTC) #22
brettw
lgtm https://codereview.chromium.org/1983613002/diff/40001/build/toolchain/cros/BUILD.gn File build/toolchain/cros/BUILD.gn (right): https://codereview.chromium.org/1983613002/diff/40001/build/toolchain/cros/BUILD.gn#newcode57 build/toolchain/cros/BUILD.gn:57: cros_host_extra_cppflags = "" It would be nice if ...
4 years, 7 months ago (2016-05-23 20:55:04 UTC) #23
Dirk Pranke
4 years, 7 months ago (2016-05-23 20:59:15 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/1983613002/diff/40001/build/toolchain/cros/BU...
File build/toolchain/cros/BUILD.gn (right):

https://codereview.chromium.org/1983613002/diff/40001/build/toolchain/cros/BU...
build/toolchain/cros/BUILD.gn:57: cros_host_extra_cppflags = ""
On 2016/05/23 20:55:04, brettw wrote:
> It would be nice if this had a similar comment as the one you added to the
> toolchain.gni file about cpp-vs-cxx.

yeah ... I waffled over how many comments I wanted to put in, and where, but it
makes sensse that we should have at least one comment on that topic
specifically.

Powered by Google App Engine
This is Rietveld 408576698