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

Issue 2202873002: Rework approach to allowing extra flags for CrOS builds. (Closed)

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

Description

Rework approach to allowing extra flags for CrOS builds. The prior approach to letting the CrOS build system set extra c/cpp/cxx/ldflags was to embed variables into the actual command line strings for each tool, but this meant that the flags were not exposed to particular targets and targets couldn't turn them off, and this was problematic. Instead, define an "extra_flags" config that can be shimmed in for the CrOS toolchains, and otherwise be treated like any other config. R=brettw@chromium.org, llozano@chromium.org BUG=629593

Patch Set 1 #

Total comments: 6

Patch Set 2 : address review comments #

Patch Set 3 : fix typos, type checking #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -57 lines) Patch
M build/config/BUILDCONFIG.gn View 1 1 chunk +4 lines, -0 lines 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A build/config/cros/BUILD.gn View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M build/toolchain/cros/BUILD.gn View 1 4 chunks +0 lines, -16 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 2 7 chunks +5 lines, -41 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
Dirk Pranke
Take a look and let me know what you think. The upside to this approach ...
4 years, 4 months ago (2016-08-02 00:23:28 UTC) #1
Dirk Pranke
https://codereview.chromium.org/2202873002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2202873002/diff/1/build/config/compiler/BUILD.gn#newcode1593 build/config/compiler/BUILD.gn:1593: } Perhaps instead of hardcoding the toolchain and config ...
4 years, 4 months ago (2016-08-02 00:28:10 UTC) #2
brettw
https://codereview.chromium.org/2202873002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2202873002/diff/1/build/config/compiler/BUILD.gn#newcode1593 build/config/compiler/BUILD.gn:1593: } Can this just be: if (target_os == "chromeos") ...
4 years, 4 months ago (2016-08-03 23:02:14 UTC) #3
Dirk Pranke
https://codereview.chromium.org/2202873002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2202873002/diff/1/build/config/compiler/BUILD.gn#newcode1593 build/config/compiler/BUILD.gn:1593: } On 2016/08/03 23:02:14, brettw (ping on IM after ...
4 years, 4 months ago (2016-08-03 23:09:07 UTC) #4
brettw
https://codereview.chromium.org/2202873002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2202873002/diff/1/build/config/compiler/BUILD.gn#newcode1593 build/config/compiler/BUILD.gn:1593: } On 2016/08/03 23:09:07, Dirk Pranke wrote: > On ...
4 years, 4 months ago (2016-08-08 22:10:56 UTC) #5
Dirk Pranke
On 2016/08/08 22:10:56, brettw (ping on IM after 24h) wrote: > https://codereview.chromium.org/2202873002/diff/1/build/config/compiler/BUILD.gn > File build/config/compiler/BUILD.gn ...
4 years, 4 months ago (2016-08-08 22:48:39 UTC) #6
brettw
LGTM if you add the comment I suggested above.
4 years, 4 months ago (2016-08-09 20:06:14 UTC) #7
Dirk Pranke
@brettw, does this still look good to you?
4 years, 4 months ago (2016-08-11 02:16:49 UTC) #8
llozano1
On 2016/08/11 02:16:49, Dirk Pranke (slow) wrote: > @brettw, does this still look good to ...
4 years, 4 months ago (2016-08-11 23:11:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2202873002/20001
4 years, 4 months ago (2016-08-12 22:26:54 UTC) #12
Dirk Pranke
> On 2016/08/11 02:16:49, Dirk Pranke (slow) wrote: > > @brettw, does this still look ...
4 years, 4 months ago (2016-08-12 22:27:32 UTC) #13
brettw
Yes, this still LGTM
4 years, 4 months ago (2016-08-12 22:35:22 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/183156)
4 years, 4 months ago (2016-08-12 22:39:27 UTC) #16
Dirk Pranke
On 2016/08/12 22:39:27, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 4 months ago (2016-08-12 23:30:00 UTC) #17
llozano
On 2016/08/12 23:30:00, Dirk Pranke (slow) wrote: > On 2016/08/12 22:39:27, commit-bot: I haz the ...
4 years, 4 months ago (2016-08-15 08:09:29 UTC) #18
Dirk Pranke
On 2016/08/15 08:09:29, llozano wrote: > On 2016/08/12 23:30:00, Dirk Pranke (slow) wrote: > > ...
4 years, 4 months ago (2016-08-15 20:37:05 UTC) #19
Dirk Pranke
4 years, 4 months ago (2016-08-15 20:37:15 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2202873002/40001
4 years, 4 months ago (2016-08-15 20:37:41 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/183726) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-08-15 20:49:23 UTC) #25
Dirk Pranke
Okay, so, it turns out that this CL isn't going to play nicely with the ...
4 years, 4 months ago (2016-08-15 21:59:28 UTC) #26
Dirk Pranke
4 years, 3 months ago (2016-08-29 23:18:48 UTC) #27
I'm going to abandon this CL. It doesn't work for CrOS builds as they exist
today, it won't easily work for non-CrOS builds as it stands, and the underlying
issue was addressed differently anyway.

I will still try to do *something* that might work for packagers, but that's a
different issue. To track that, see crbug.com/642016.

Powered by Google App Engine
This is Rietveld 408576698