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

Issue 1432603003: GN: Avoid nontrivial shell commands in gcc_toolchain tool("link") (Closed)

Created:
5 years, 1 month ago by Roland McGrath
Modified:
5 years, 1 month ago
CC:
chromium-reviews, Bons, agrieve, Nico, brettw
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN: Avoid nontrivial shell commands in gcc_toolchain tool("link") The gcc_toolchain template is used for NaCl toolchains on every host OS, as well as for the native toolchains on a POSIXy OS. When the host is not POSIXy, the toolchain commands cannot use sh syntax (not even '&&'). The "link" tool does more than a simple command when 'strip' or 'postlink' variables are set, and used POSIX sh syntax to in these cases. To make this tool portable, make it use a Python script instead of those complex shell command lines. The 'postlink' variable was used only for the pnacl toolchain's "finalize" step and it can just as well use the 'strip' variable for that purpose, so simplify things by eliminating 'postlink' entirely. BUG=512869 R=dpranke@chromium.org, dschuff@chromium.org Committed: https://crrev.com/46f8e4a291285770abb2357402fe8e662e00df2e Cr-Commit-Position: refs/heads/master@{#358684}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix chromoting pexe.debug reference #

Patch Set 3 : add comment #

Total comments: 2

Patch Set 4 : .pexe.debug copy rule for remoting/webapp #

Patch Set 5 : remove workaround now that pnacl-finalize handles --strip-unneeded #

Total comments: 2

Patch Set 6 : change name of remoting copy rule #

Patch Set 7 : gn set-but-unused nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -19 lines) Patch
A build/toolchain/gcc_link_wrapper.py View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 chunk +2 lines, -6 lines 0 comments Download
M build/toolchain/nacl/BUILD.gn View 1 2 1 chunk +11 lines, -8 lines 0 comments Download
M build/toolchain/nacl_toolchain.gni View 1 chunk +0 lines, -1 line 0 comments Download
M remoting/client/plugin/BUILD.gn View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M remoting/webapp/build_template.gni View 1 2 3 4 5 6 2 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 35 (11 generated)
Roland McGrath
5 years, 1 month ago (2015-11-03 23:38:35 UTC) #1
Dirk Pranke
lgtm w/ a couple of nits. Also, your CL description isn't quite right, because Mac ...
5 years, 1 month ago (2015-11-03 23:49:13 UTC) #2
Dirk Pranke
also, simplifying the reviewer list and moving more people to CC:
5 years, 1 month ago (2015-11-03 23:50:13 UTC) #4
scottmg
On 2015/11/03 23:49:13, Dirk Pranke wrote: > lgtm w/ a couple of nits. > > ...
5 years, 1 month ago (2015-11-03 23:54:23 UTC) #6
Dirk Pranke
On 2015/11/03 23:54:23, scottmg wrote: > On 2015/11/03 23:49:13, Dirk Pranke wrote: > > nit: ...
5 years, 1 month ago (2015-11-04 00:03:30 UTC) #7
Roland McGrath
https://codereview.chromium.org/1432603003/diff/1/build/toolchain/gcc_link_wrapper.py File build/toolchain/gcc_link_wrapper.py (right): https://codereview.chromium.org/1432603003/diff/1/build/toolchain/gcc_link_wrapper.py#newcode1 build/toolchain/gcc_link_wrapper.py:1: #!/usr/bin/env python On 2015/11/03 23:49:13, Dirk Pranke wrote: > ...
5 years, 1 month ago (2015-11-04 00:06:44 UTC) #8
Dirk Pranke
On 2015/11/04 00:06:44, Roland McGrath wrote: > https://codereview.chromium.org/1432603003/diff/1/build/toolchain/gcc_link_wrapper.py > File build/toolchain/gcc_link_wrapper.py (right): > > https://codereview.chromium.org/1432603003/diff/1/build/toolchain/gcc_link_wrapper.py#newcode1 ...
5 years, 1 month ago (2015-11-04 00:11:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432603003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432603003/40001
5 years, 1 month ago (2015-11-04 00:55:04 UTC) #12
Roland McGrath
+sergeyu for remoting/OWNERS review
5 years, 1 month ago (2015-11-04 01:10:11 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/115327)
5 years, 1 month ago (2015-11-04 01:24:04 UTC) #16
Sergey Ulanov
https://codereview.chromium.org/1432603003/diff/40001/remoting/webapp/build_template.gni File remoting/webapp/build_template.gni (right): https://codereview.chromium.org/1432603003/diff/40001/remoting/webapp/build_template.gni#newcode207 remoting/webapp/build_template.gni:207: [ "$pexe_dir/exe.unstripped/remoting_client_plugin_newlib.pexe" ] The build-webapp.py just copies all files ...
5 years, 1 month ago (2015-11-04 07:36:23 UTC) #17
Roland McGrath
https://codereview.chromium.org/1432603003/diff/40001/remoting/webapp/build_template.gni File remoting/webapp/build_template.gni (right): https://codereview.chromium.org/1432603003/diff/40001/remoting/webapp/build_template.gni#newcode207 remoting/webapp/build_template.gni:207: [ "$pexe_dir/exe.unstripped/remoting_client_plugin_newlib.pexe" ] On 2015/11/04 07:36:23, Sergey Ulanov wrote: ...
5 years, 1 month ago (2015-11-04 20:26:47 UTC) #18
Sergey Ulanov
On 2015/11/04 20:26:47, Roland McGrath wrote: > https://codereview.chromium.org/1432603003/diff/40001/remoting/webapp/build_template.gni > File remoting/webapp/build_template.gni (right): > > https://codereview.chromium.org/1432603003/diff/40001/remoting/webapp/build_template.gni#newcode207 ...
5 years, 1 month ago (2015-11-04 22:52:50 UTC) #19
Roland McGrath
On 2015/11/04 22:52:50, Sergey Ulanov wrote: > If you add .unstripped suffix for unstripped binaries ...
5 years, 1 month ago (2015-11-04 23:00:34 UTC) #20
Dirk Pranke
On 2015/11/04 23:00:34, Roland McGrath wrote: > 'ninja -C ... remoting/webapp' with a GN build ...
5 years, 1 month ago (2015-11-05 01:21:28 UTC) #21
Roland McGrath
PTAL New version has a copy rule for remoting/webapp's .pexe.debug file. After the unrelated fixes ...
5 years, 1 month ago (2015-11-05 19:00:18 UTC) #22
Sergey Ulanov
https://codereview.chromium.org/1432603003/diff/80001/remoting/client/plugin/BUILD.gn File remoting/client/plugin/BUILD.gn (right): https://codereview.chromium.org/1432603003/diff/80001/remoting/client/plugin/BUILD.gn#newcode45 remoting/client/plugin/BUILD.gn:45: if (enable_pnacl && is_debug) { Duplicating the target like ...
5 years, 1 month ago (2015-11-09 21:14:47 UTC) #23
Roland McGrath
PTAL https://codereview.chromium.org/1432603003/diff/80001/remoting/client/plugin/BUILD.gn File remoting/client/plugin/BUILD.gn (right): https://codereview.chromium.org/1432603003/diff/80001/remoting/client/plugin/BUILD.gn#newcode45 remoting/client/plugin/BUILD.gn:45: if (enable_pnacl && is_debug) { On 2015/11/09 21:14:46, ...
5 years, 1 month ago (2015-11-09 21:30:21 UTC) #24
Sergey Ulanov
lgtm
5 years, 1 month ago (2015-11-09 21:32:59 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432603003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432603003/100001
5 years, 1 month ago (2015-11-09 21:37:02 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/27462)
5 years, 1 month ago (2015-11-09 21:44:23 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432603003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432603003/120001
5 years, 1 month ago (2015-11-09 21:51:32 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-09 22:28:44 UTC) #34
commit-bot: I haz the power
5 years, 1 month ago (2015-11-09 22:29:43 UTC) #35
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/46f8e4a291285770abb2357402fe8e662e00df2e
Cr-Commit-Position: refs/heads/master@{#358684}

Powered by Google App Engine
This is Rietveld 408576698