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

Unified Diff: SConstruct

Issue 25499003: PNaCl: Allow translator to produce an unsandboxed, native executable (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix -I path 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') | buildbot/buildbot_pnacl.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: SConstruct
diff --git a/SConstruct b/SConstruct
index f281ff3bc876277eaaf56ceea835558a0f55f407..b439118c90b8ce2d107808c4c31aee8ac80b0716 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 '
@@ -1515,6 +1518,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') | buildbot/buildbot_pnacl.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698