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

Issue 689753002: Remove building llvm2ice.build_atts from Subzero build. (Closed)

Created:
6 years, 1 month ago by Karl
Modified:
6 years, 1 month ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Fix nits. #

Total comments: 4

Patch Set 3 : Fix test in if.py #

Total comments: 5

Patch Set 4 : Fix issues raised. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -73 lines) Patch
M Makefile.standalone View 1 2 3 3 chunks +8 lines, -5 lines 0 comments Download
A pydir/if.py View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
D pydir/ifatts.py View 1 chunk +0 lines, -58 lines 0 comments Download
M tests_lit/lit.cfg View 1 2 3 3 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Karl
6 years, 1 month ago (2014-10-29 19:42:24 UTC) #2
Karl
6 years, 1 month ago (2014-10-29 19:42:33 UTC) #3
Karl
https://codereview.chromium.org/689753002/diff/40001/pydir/if.py File pydir/if.py (right): https://codereview.chromium.org/689753002/diff/40001/pydir/if.py#newcode41 pydir/if.py:41: if args.cond == 'true' and set(args.need) <= set(args.have): Fixed ...
6 years, 1 month ago (2014-10-29 21:18:18 UTC) #4
Jim Stichnoth
otherwise lgtm https://codereview.chromium.org/689753002/diff/20001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/689753002/diff/20001/Makefile.standalone#newcode123 Makefile.standalone:123: @$(OBJDIR)/llvm2ice --build-atts This is done just to ...
6 years, 1 month ago (2014-10-29 21:29:37 UTC) #5
Karl
Committed patchset #4 (id:60001) manually as 6af6336dd4e2004850f89a0e23a62f3c2f4f4285 (presubmit successful).
6 years, 1 month ago (2014-10-29 21:55:06 UTC) #6
Karl
6 years, 1 month ago (2014-10-29 21:55:28 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/689753002/diff/20001/Makefile.standalone
File Makefile.standalone (right):

https://codereview.chromium.org/689753002/diff/20001/Makefile.standalone#newc...
Makefile.standalone:123: @$(OBJDIR)/llvm2ice --build-atts
On 2014/10/29 21:29:36, stichnot wrote:
> This is done just to let the user know what the build-atts are?
> 
> How about ./llvm2ice instead, to "test" the new symlink?

Actually, it also verifies that the define flags are properly defined (this is
checked by llvm2ice), and generates an error if there is a problem.

Changed to use the new symlink.

https://codereview.chromium.org/689753002/diff/20001/pydir/if.py
File pydir/if.py (right):

https://codereview.chromium.org/689753002/diff/20001/pydir/if.py#newcode20
pydir/if.py:20: argparser.add_argument('--cond', choices={'true', 'false'} ,
required=False,
On 2014/10/29 21:29:37, stichnot wrote:
> A little bikeshedding.  What about:
> 
> argparser.add_argument('--cond-true',  dest='cond', action='store_true')
> argparser.add_argument('--cond-false', dest='cond', action='store_false')
> 
> (And I was going to ask how the test below on args.cond could possibly work,
but
> I see you fixed it... :)

We can't use the same desc field for two different arguments. argparse does not
allow this. Leaving as is.

https://codereview.chromium.org/689753002/diff/40001/tests_lit/lit.cfg
File tests_lit/lit.cfg (right):

https://codereview.chromium.org/689753002/diff/40001/tests_lit/lit.cfg#newcode79
tests_lit/lit.cfg:79: if Value:
On 2014/10/29 21:29:37, stichnot wrote:
> return '--cond=true' if Value else '--cond=false'

Done.

https://codereview.chromium.org/689753002/diff/40001/tests_lit/lit.cfg#newcode86
tests_lit/lit.cfg:86: if_atts_cmd = (if_atts + ['--have=' + att for att in
llvm2iceatts] +
On 2014/10/29 21:29:37, stichnot wrote:
> remove parens

The parens were added because the instruction crosses multiple lines, but not at
a point where a parenthesis is. Without it, you get a Python syntax error.

To remove them, I have broken the list comprehension across two lines.

Powered by Google App Engine
This is Rietveld 408576698