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

Unified Diff: SConstruct

Issue 26607002: PNaCl: Allow translator to produce an unsandboxed, native executable (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Expand on comment Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | buildbot/buildbot_pnacl.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: SConstruct
diff --git a/SConstruct b/SConstruct
index 6e328c9e9b7df6ff6919177410af0a37472449b9..0d6ca8dcacb6e11d72482598252dcbc4afa15b02 100755
--- a/SConstruct
+++ b/SConstruct
@@ -307,6 +307,9 @@ def SetUpArgumentBits(env):
BitFromArgument(env, 'translate_in_build_step', default=True,
desc='Run translation during build phase (e.g. if do_not_run_tests=1)')
+ BitFromArgument(env, 'pnacl_unsandboxed', default=False,
+ desc='Translate pexe to an unsandboxed, host executable')
+
BitFromArgument(env, 'browser_headless', default=False,
desc='Where possible, set up a dummy display to run the browser on '
'when running browser tests. On Linux, this runs the browser through '
@@ -1518,6 +1521,10 @@ def CommandSelLdrTestNacl(env, name, nexe,
if args is not None:
command += args
+ if env.Bit('pnacl_unsandboxed'):
+ # Run unsandboxed executable directly, without sel_ldr.
+ return env.CommandTest(name, command, size, **extra)
+
if loader is None:
loader = env.GetSelLdr()
if loader is None:
« no previous file with comments | « no previous file | buildbot/buildbot_pnacl.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698