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

Unified Diff: pydir/szbuild_spec2k.py

Issue 1506653002: Subzero: Add Non-SFI support for x86-32. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 12 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 | « pydir/szbuild.py ('k') | pydir/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/szbuild_spec2k.py
diff --git a/pydir/szbuild_spec2k.py b/pydir/szbuild_spec2k.py
index 0c2f38ad16a2783f4671f5f0b1701a6d6aeb6bf2..b9cf15d1d4cb321ab68196bb5979af781434d81a 100755
--- a/pydir/szbuild_spec2k.py
+++ b/pydir/szbuild_spec2k.py
@@ -16,6 +16,8 @@ def main():
'./run_all.sh RunBenchmarks SetupGccX8632Opt {train|ref} ...'
-- or --
'./run_all.sh RunBenchmarks SetupPnaclX8632Opt {train|ref} ...'
+ -- or --
+ './run_all.sh RunBenchmarks SetupNonsfiX8632Opt {train|ref} ...'
"""
nacl_root = FindBaseNaCl()
# Use the same default ordering as spec2k/run_all.sh.
@@ -45,7 +47,9 @@ def main():
run_all_target = target_map[args.target] # fail if target not listed above
suffix = (
- 'pnacl.opt.{target}' if args.sandbox else 'gcc.opt.{target}').format(
+ 'pnacl.opt.{target}' if args.sandbox else
+ 'nonsfi.opt.{target}' if args.nonsfi else
+ 'gcc.opt.{target}').format(
target=run_all_target);
for comp in args.comps:
name = os.path.splitext(comp)[1] or comp
@@ -61,7 +65,9 @@ def main():
suffix=suffix))
if args.run:
os.chdir('{root}/tests/spec2k'.format(root=FindBaseNaCl()))
- setup = 'SetupGcc' + {
+ setup = 'Setup' + ('Pnacl' if args.sandbox else
+ 'Nonsfi' if args.nonsfi else
+ 'Gcc') + {
'arm32': 'Arm',
'x8632': 'X8632',
'x8664': 'X8664'}[args.target] + 'Opt'
« no previous file with comments | « pydir/szbuild.py ('k') | pydir/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698