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

Issue 1307653008: Fix more aspects of the NaCl build configs. (Closed)

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

Description

Fix more aspects of the NaCl build configs. As part of the un-forking of the NaCl GN build configs, we need to be a little more careful about which NaCl toolchains are considered to be "clang" or not and whether some of the clang-specific compiler settings need to be applied in the NaCl contexts. Also, remove more stray references to the old Nacl build configs. R=brettw@chromium.org, mcgrathr@chromium.org, thakis@chromium.org BUG=433528 Committed: https://crrev.com/b8c6bf7592cf6cb412f2d3f151bc29bd96ee7380 Cr-Commit-Position: refs/heads/master@{#347262}

Patch Set 1 #

Patch Set 2 : fix color diagnostics #

Patch Set 3 : add more clarifying comments about NaCl and the -std flag #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -14 lines) Patch
M .gn View 1 chunk +0 lines, -11 lines 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 1 chunk +6 lines, -2 lines 2 comments Download
M build/toolchain/nacl/BUILD.gn View 6 chunks +6 lines, -0 lines 0 comments Download
M ppapi/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (4 generated)
Dirk Pranke
5 years, 3 months ago (2015-09-02 22:32:33 UTC) #1
Nico
The changes in build/config/compiler/BUILD.gn look wrong to me. Why are they needed? From what I ...
5 years, 3 months ago (2015-09-03 05:32:00 UTC) #2
Dirk Pranke
On 2015/09/03 05:32:00, Nico (vacation Thu Sep 2) wrote: > The changes in build/config/compiler/BUILD.gn look ...
5 years, 3 months ago (2015-09-03 15:36:10 UTC) #3
Dirk Pranke
On 2015/09/03 15:36:10, Dirk Pranke wrote: > On 2015/09/03 05:32:00, Nico (vacation Thu Sep 2) ...
5 years, 3 months ago (2015-09-03 20:24:31 UTC) #4
chromium-reviews
Yes that's correct, nacl-gcc doesn't support C++11. On Thu, Sep 3, 2015 at 1:24 PM ...
5 years, 3 months ago (2015-09-03 20:26:59 UTC) #5
Roland McGrath
lgtm
5 years, 3 months ago (2015-09-03 20:43:44 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307653008/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307653008/40001
5 years, 3 months ago (2015-09-03 21:36:58 UTC) #8
brettw
It seems like nacl clang is a hairy issue and for now we can't call ...
5 years, 3 months ago (2015-09-03 21:38:16 UTC) #9
Dirk Pranke
On 2015/09/03 21:38:16, brettw wrote: > It seems like nacl clang is a hairy issue ...
5 years, 3 months ago (2015-09-03 21:40:14 UTC) #10
Dirk Pranke
Nico, hopefully this addresses your concerns; if it doesn't, we can talk further and I ...
5 years, 3 months ago (2015-09-03 21:56:41 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-03 22:05:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307653008/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307653008/40001
5 years, 3 months ago (2015-09-03 22:10:47 UTC) #16
chromium-reviews
We have 3 compilers: nacl-gcc, nacl-clang and pnacl-clang. nacl-clang is clang (implemented as a custom ...
5 years, 3 months ago (2015-09-03 22:10:54 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-03 22:18:13 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/b8c6bf7592cf6cb412f2d3f151bc29bd96ee7380 Cr-Commit-Position: refs/heads/master@{#347262}
5 years, 3 months ago (2015-09-03 22:18:49 UTC) #19
Nico
https://codereview.chromium.org/1307653008/diff/40001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1307653008/diff/40001/build/config/compiler/BUILD.gn#newcode525 build/config/compiler/BUILD.gn:525: if (is_linux || is_android || (is_nacl && is_clang)) { ...
5 years, 3 months ago (2015-09-05 01:03:20 UTC) #20
Dirk Pranke
5 years, 3 months ago (2015-09-05 01:37:20 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/1307653008/diff/40001/build/config/compiler/B...
File build/config/compiler/BUILD.gn (right):

https://codereview.chromium.org/1307653008/diff/40001/build/config/compiler/B...
build/config/compiler/BUILD.gn:525: if (is_linux || is_android || (is_nacl &&
is_clang)) {
On 2015/09/05 01:03:20, Nico (offsite Fri Sep 3) wrote:
> I still don't understand this change. Why is this depending on clang?

the clang-based NaCl toolchains understand this flag. the gcc-based ones do not.

We need the flag in some places to compile some of the code (like the irt), but
we don't 
need it everywhere (apparently).

Does that help clarify things?

> 
> From what I understand, this probably corresponds to
>
https://code.google.com/p/chromium/codesearch#chromium/src/native_client/buil...
> – should this just say
> 
>  if (is_nacl)
>    gnu++0x  # nacl toolchain is old
>   else if /* as before */
> 
> ?

Yes, that might work. The code, however, compiles just fine w/ no --std= flag at
all, too.

Powered by Google App Engine
This is Rietveld 408576698