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

Unified Diff: tests/toolchain/nacl.scons

Issue 12594036: Add a scons pnacl finalize step for pnacl_generate_pexe tests. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Use StripSuffix Created 7 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 | « tests/subprocess/nacl.scons ('k') | tests/trusted_crash/crash_in_syscall/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/toolchain/nacl.scons
diff --git a/tests/toolchain/nacl.scons b/tests/toolchain/nacl.scons
index 1da5f4da3bfe6048cdcca257fbc8c55adcbc4e2b..abceb2ed0baafb79022b29dd748ed44350996a0d 100644
--- a/tests/toolchain/nacl.scons
+++ b/tests/toolchain/nacl.scons
@@ -289,24 +289,29 @@ debug_env = env.Clone()
debug_env.Append(CFLAGS=['-g', '-O0'])
debug_env.Append(CCFLAGS=['-g', '-O0'])
debug_env.Append(LINKFLAGS=['-O0'])
-dwarf_local_var_nexe = debug_env.ComponentProgram('dwarf_local_var',
- ['dwarf_local_var.c',
- 'dwarf_local_var_dummy.c'],
- EXTRA_LIBS=['${NONIRT_LIBS}'])
-# Sanity-check -- make sure it runs.
-node = debug_env.CommandSelLdrTestNacl('dwarf_local_var_run.out',
- dwarf_local_var_nexe,
- exit_status=55)
-debug_env.AddNodeToTestSuite(node,
- ['toolchain_tests', 'small_tests'],
- 'run_dwarf_local_var_run_test')
-node = debug_env.CommandTestFileDumpCheck('dwarf_local_var_objdump.out',
- dwarf_local_var_nexe,
- debug_env.File('dwarf_local_var.c'),
- '-W')
-debug_env.AddNodeToTestSuite(node,
- ['small_tests', 'toolchain_tests'],
- 'run_dwarf_local_var_objdump_test')
+# This requires preserving nonstable bitcode debug metadata.
+if debug_env.Bit('bitcode'):
+ debug_env.SetBits('nonstable_bitcode')
+if not debug_env.Bit('skip_nonstable_bitcode'):
+ dwarf_local_var_nexe = debug_env.ComponentProgram(
+ 'dwarf_local_var',
+ ['dwarf_local_var.c',
+ 'dwarf_local_var_dummy.c'],
+ EXTRA_LIBS=['${NONIRT_LIBS}'])
+ # Sanity-check -- make sure it runs.
+ node = debug_env.CommandSelLdrTestNacl('dwarf_local_var_run.out',
+ dwarf_local_var_nexe,
+ exit_status=55)
+ debug_env.AddNodeToTestSuite(node,
+ ['toolchain_tests', 'small_tests'],
+ 'run_dwarf_local_var_run_test')
+ node = debug_env.CommandTestFileDumpCheck('dwarf_local_var_objdump.out',
+ dwarf_local_var_nexe,
+ debug_env.File('dwarf_local_var.c'),
+ '-W')
+ debug_env.AddNodeToTestSuite(node,
+ ['small_tests', 'toolchain_tests'],
+ 'run_dwarf_local_var_objdump_test')
if env.Bit('nacl_glibc'):
nexe = env.ComponentProgram('byteswap64', 'byteswap64.c',
« no previous file with comments | « tests/subprocess/nacl.scons ('k') | tests/trusted_crash/crash_in_syscall/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698