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

Unified Diff: SConstruct

Issue 1026243002: Add Subzero to test scripts. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Code review changes Created 5 years, 9 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 | pnacl/driver/pnacl-translate.py » ('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 271e637c16fe937d154e11b53ce65ecee53e17d4..f623a3fe96627a843e7880177e5c02c82aa9e74d 100755
--- a/SConstruct
+++ b/SConstruct
@@ -269,6 +269,9 @@ def SetUpArgumentBits(env):
BitFromArgument(env, 'translate_fast', default=False,
desc='When using pnacl TC (bitcode=1) use accelerated translation step')
+ BitFromArgument(env, 'use_sz', default=False,
+ desc='When using pnacl TC (bitcode=1) use Subzero for fast translation')
+
BitFromArgument(env, 'built_elsewhere', default=False,
desc='The programs have already been built by another system')
@@ -404,6 +407,7 @@ def SetUpArgumentBits(env):
'pnacl_unsandboxed',
'skip_nonstable_bitcode',
'translate_fast',
+ 'use_sz',
'use_sandboxed_translator')
for flag_name in pnacl_only_flags:
@@ -1827,6 +1831,7 @@ def GetPerfEnvDescription(env):
bit_to_description = [ ('tests_use_irt', ('with_irt', '')),
('bitcode', ('pnacl', 'nnacl')),
('translate_fast', ('fast', '')),
+ ('use_sz', ('sz', '')),
('nacl_glibc', ('glibc', 'newlib')),
('nacl_static_link', ('static', 'dynamic')),
]
@@ -3135,6 +3140,8 @@ if nacl_env.Bit('bitcode'):
if nacl_env.Bit('translate_fast'):
nacl_env.Append(LINKFLAGS=['-Xlinker', '-translate-fast'])
nacl_env.Append(TRANSLATEFLAGS=['-translate-fast'])
+ if nacl_env.Bit('use_sz'):
+ nacl_env.Append(TRANSLATEFLAGS=['--use-sz'])
# With pnacl's clang base/ code uses the "override" keyword.
nacl_env.Append(CXXFLAGS=['-Wno-c++11-extensions'])
@@ -3177,6 +3184,7 @@ nacl_irt_env.Append(CPPPATH='${MAIN_DIR}/src/untrusted/pthread')
target_variant_map = [
('bitcode', 'pnacl'),
('translate_fast', 'fast'),
+ ('use_sz', 'subzero'),
('nacl_pic', 'pic'),
('use_sandboxed_translator', 'sbtc'),
('nacl_glibc', 'glibc'),
« no previous file with comments | « no previous file | pnacl/driver/pnacl-translate.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698