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

Issue 1903553004: Subzero: Allow overriding command-line args from the browser. (Closed)

Created:
4 years, 8 months ago by Jim Stichnoth
Modified:
4 years, 8 months ago
Reviewers:
Eric Holk, Karl, sehr, John
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Allow overriding command-line args from the browser. In the browser build only, allows arguments to be explicitly passed to pnacl-sz, in two ways: 1. The SZARGFILE envvar contains the name of a file with arguments, one per line. For each line, initial whitespace is ignored, and lines starting with the '#' comment character are also ignored. 2. The SZARGLIST envvar contains all the arguments, separated by the '|' character. Chrome needs to be started with special options to allow the envvars to be passed through, and also to allow access to the local file system. In addition, specifying "-log=/dev/stderr" or "-o /dev/stderr" gets mapped to std::cerr, in the same way "-" gets mapped to std::cout. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4370 R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=fd07ad08190cbb7c9818e79fab9059eb3ed329d7

Patch Set 1 #

Patch Set 2 : Allow -threads to be overridden #

Patch Set 3 : Cleanup #

Total comments: 4

Patch Set 4 : Const cleanup #

Patch Set 5 : Fix /dev/stderr for browser build. Ignore lines starting with # . #

Total comments: 6

Patch Set 6 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -31 lines) Patch
M src/IceBrowserCompileServer.h View 1 2 3 5 1 chunk +2 lines, -1 line 0 comments Download
M src/IceBrowserCompileServer.cpp View 1 2 3 4 5 6 chunks +89 lines, -9 lines 0 comments Download
M src/IceClFlags.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/IceClFlags.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/IceCompileServer.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/IceRangeSpec.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/IceRangeSpec.cpp View 3 chunks +16 lines, -19 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
Jim Stichnoth
4 years, 8 months ago (2016-04-20 02:58:41 UTC) #4
John
lgtm https://codereview.chromium.org/1903553004/diff/40001/src/IceBrowserCompileServer.cpp File src/IceBrowserCompileServer.cpp (right): https://codereview.chromium.org/1903553004/diff/40001/src/IceBrowserCompileServer.cpp#newcode81 src/IceBrowserCompileServer.cpp:81: std::vector<std::string> getExternalArgs() { Maybe add a if (BrowserBuild) ...
4 years, 8 months ago (2016-04-20 03:22:02 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/1903553004/diff/40001/src/IceBrowserCompileServer.cpp File src/IceBrowserCompileServer.cpp (right): https://codereview.chromium.org/1903553004/diff/40001/src/IceBrowserCompileServer.cpp#newcode81 src/IceBrowserCompileServer.cpp:81: std::vector<std::string> getExternalArgs() { On 2016/04/20 03:22:02, John wrote: > ...
4 years, 8 months ago (2016-04-20 04:17:24 UTC) #6
Jim Stichnoth
PTAL. The latest patchset applies the /dev/stderr processing to the browser build (the original patch ...
4 years, 8 months ago (2016-04-20 13:55:38 UTC) #8
John
Lgtm, with a grain of salt https://codereview.chromium.org/1903553004/diff/80001/src/IceBrowserCompileServer.cpp File src/IceBrowserCompileServer.cpp (right): https://codereview.chromium.org/1903553004/diff/80001/src/IceBrowserCompileServer.cpp#newcode82 src/IceBrowserCompileServer.cpp:82: std::vector<std::string> ExternalArgs; I ...
4 years, 8 months ago (2016-04-20 14:17:24 UTC) #10
Jim Stichnoth
https://codereview.chromium.org/1903553004/diff/80001/src/IceBrowserCompileServer.cpp File src/IceBrowserCompileServer.cpp (right): https://codereview.chromium.org/1903553004/diff/80001/src/IceBrowserCompileServer.cpp#newcode82 src/IceBrowserCompileServer.cpp:82: std::vector<std::string> ExternalArgs; On 2016/04/20 14:17:24, John wrote: > I ...
4 years, 8 months ago (2016-04-20 16:53:55 UTC) #11
Jim Stichnoth
4 years, 8 months ago (2016-04-20 17:12:51 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
fd07ad08190cbb7c9818e79fab9059eb3ed329d7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698