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

Issue 1041843003: Add argv[0] before parsing commandline flags. (Closed)

Created:
5 years, 8 months ago by jvoung (off chromium)
Modified:
5 years, 8 months ago
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

Add argv[0] before parsing commandline flags. The \0 delimited string array that the browser sends doesn't have the program name and the IRT only tokenizes that and forwards it along. We need argv[0] to make the llvm CL parser happy (used for -help message, etc). Alternatively, we could have the IRT fill in a program name so that the argv is a real argv. That will involve less copying since the argv will be the right size to begin with, but prevents each app from customizing its argv[0] =/ BUG= https://code.google.com/p/nativeclient/issues/detail?id=4091 TEST= manual for now (construct the sel_universal script to only pass the "--build-atts" flag and see it exits without being swallowed, or pass "-Ofoo" and see an error + exit) R=mtrofin@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=9c1d3869bab08d1a6e0255712b59dc0e59b44618

Patch Set 1 #

Patch Set 2 : x #

Patch Set 3 : stuff #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M src/IceBrowserCompileServer.cpp View 1 2 2 chunks +12 lines, -3 lines 3 comments Download

Messages

Total messages: 7 (1 generated)
jvoung (off chromium)
5 years, 8 months ago (2015-03-31 16:50:10 UTC) #2
Jim Stichnoth
lgtm
5 years, 8 months ago (2015-03-31 16:56:08 UTC) #3
Mircea Trofin
lgtm https://codereview.chromium.org/1041843003/diff/40001/src/IceBrowserCompileServer.cpp File src/IceBrowserCompileServer.cpp (right): https://codereview.chromium.org/1041843003/diff/40001/src/IceBrowserCompileServer.cpp#newcode60 src/IceBrowserCompileServer.cpp:60: std::vector<char *> Argv; you could just std::vector<char *> ...
5 years, 8 months ago (2015-03-31 17:24:04 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/1041843003/diff/40001/src/IceBrowserCompileServer.cpp File src/IceBrowserCompileServer.cpp (right): https://codereview.chromium.org/1041843003/diff/40001/src/IceBrowserCompileServer.cpp#newcode60 src/IceBrowserCompileServer.cpp:60: std::vector<char *> Argv; On 2015/03/31 17:24:04, Mircea Trofin wrote: ...
5 years, 8 months ago (2015-03-31 17:26:45 UTC) #5
jvoung (off chromium)
https://codereview.chromium.org/1041843003/diff/40001/src/IceBrowserCompileServer.cpp File src/IceBrowserCompileServer.cpp (right): https://codereview.chromium.org/1041843003/diff/40001/src/IceBrowserCompileServer.cpp#newcode60 src/IceBrowserCompileServer.cpp:60: std::vector<char *> Argv; On 2015/03/31 17:26:44, stichnot wrote: > ...
5 years, 8 months ago (2015-03-31 20:41:16 UTC) #6
jvoung (off chromium)
5 years, 8 months ago (2015-03-31 21:14:27 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
9c1d3869bab08d1a6e0255712b59dc0e59b44618 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698