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

Issue 1413073005: GN: Avoid nontrivial shell commands in gcc_toolchain tools (Closed)

Created:
5 years, 1 month ago by Roland McGrath
Modified:
5 years, 1 month ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews
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 tools 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 nontrivial sh syntax or other POSIX utilities (such as 'cut'). The "ar" and "solink" tools do more than a simple command and used POSIX sh syntax to do their work. To make these tools portable, make them use Python scripts instead of those complex shell command lines. BUG=512869 R=dpranke@chromium.org Committed: https://crrev.com/0b367cc8cf4b27037e5c709adf37271c0d90d392 Cr-Commit-Position: refs/heads/master@{#356699}

Patch Set 1 #

Total comments: 12

Patch Set 2 : review nits #

Patch Set 3 : pedantically correct os.remove error handling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -13 lines) Patch
A build/toolchain/gcc_ar_wrapper.py View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A build/toolchain/gcc_solink_wrapper.py View 1 1 chunk +110 lines, -0 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 2 chunks +19 lines, -13 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
Roland McGrath
5 years, 1 month ago (2015-10-28 00:04:08 UTC) #1
Dirk Pranke
I haven't had a chance to look at this yet, sorry! I'll try to get ...
5 years, 1 month ago (2015-10-28 01:51:31 UTC) #2
Dirk Pranke
mostly lgtm, just one possible bug and some nits. https://codereview.chromium.org/1413073005/diff/1/build/toolchain/gcc_ar_wrapper.py File build/toolchain/gcc_ar_wrapper.py (right): https://codereview.chromium.org/1413073005/diff/1/build/toolchain/gcc_ar_wrapper.py#newcode33 build/toolchain/gcc_ar_wrapper.py:33: ...
5 years, 1 month ago (2015-10-28 22:13:03 UTC) #3
Roland McGrath
https://codereview.chromium.org/1413073005/diff/1/build/toolchain/gcc_ar_wrapper.py File build/toolchain/gcc_ar_wrapper.py (right): https://codereview.chromium.org/1413073005/diff/1/build/toolchain/gcc_ar_wrapper.py#newcode33 build/toolchain/gcc_ar_wrapper.py:33: help='Load plugin') On 2015/10/28 22:13:03, Dirk Pranke wrote: > ...
5 years, 1 month ago (2015-10-28 22:25:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413073005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413073005/20001
5 years, 1 month ago (2015-10-28 22:26:26 UTC) #7
Dirk Pranke
On 2015/10/28 22:25:16, Roland McGrath wrote: > https://codereview.chromium.org/1413073005/diff/1/build/toolchain/gcc_ar_wrapper.py > File build/toolchain/gcc_ar_wrapper.py (right): > > https://codereview.chromium.org/1413073005/diff/1/build/toolchain/gcc_ar_wrapper.py#newcode33 ...
5 years, 1 month ago (2015-10-28 22:40:32 UTC) #8
Roland McGrath
On 2015/10/28 22:40:32, Dirk Pranke wrote: > On 2015/10/28 22:25:16, Roland McGrath wrote: > > ...
5 years, 1 month ago (2015-10-28 23:04:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413073005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413073005/40001
5 years, 1 month ago (2015-10-28 23:05:04 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-10-29 00:24:40 UTC) #14
commit-bot: I haz the power
5 years, 1 month ago (2015-10-29 00:25:20 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0b367cc8cf4b27037e5c709adf37271c0d90d392
Cr-Commit-Position: refs/heads/master@{#356699}

Powered by Google App Engine
This is Rietveld 408576698