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

Side by Side Diff: site_scons/site_tools/naclsdk.py

Issue 9316125: Adding untrusted crash dump / stack trace tests. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: taking out of irt tests Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Nacl SDK tool SCons.""" 6 """Nacl SDK tool SCons."""
7 7
8 import __builtin__ 8 import __builtin__
9 import re 9 import re
10 import os 10 import os
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 AS=os.path.join(bin_path, '%s-as' % arch), 160 AS=os.path.join(bin_path, '%s-as' % arch),
161 ASPP=os.path.join(bin_path, '%s-gcc' % arch), 161 ASPP=os.path.join(bin_path, '%s-gcc' % arch),
162 GDB=os.path.join(bin_path, 'nacl-gdb'), 162 GDB=os.path.join(bin_path, 'nacl-gdb'),
163 # NOTE: use g++ for linking so we can handle C AND C++. 163 # NOTE: use g++ for linking so we can handle C AND C++.
164 LINK=os.path.join(bin_path, '%s-g++' % arch), 164 LINK=os.path.join(bin_path, '%s-g++' % arch),
165 # Grrr... and sometimes we really need ld. 165 # Grrr... and sometimes we really need ld.
166 LD=os.path.join(bin_path, '%s-ld%s' % (arch, ld_mode_flag)), 166 LD=os.path.join(bin_path, '%s-ld%s' % (arch, ld_mode_flag)),
167 RANLIB=os.path.join(bin_path, '%s-ranlib' % arch), 167 RANLIB=os.path.join(bin_path, '%s-ranlib' % arch),
168 OBJDUMP=os.path.join(bin_path, '%s-objdump' % arch), 168 OBJDUMP=os.path.join(bin_path, '%s-objdump' % arch),
169 STRIP=os.path.join(bin_path, '%s-strip' % arch), 169 STRIP=os.path.join(bin_path, '%s-strip' % arch),
170 ADDR2LINE=os.path.join(bin_path, '%s-addr2line' % arch),
170 BASE_LINKFLAGS=[cc_mode_flag], 171 BASE_LINKFLAGS=[cc_mode_flag],
171 BASE_CFLAGS=[cc_mode_flag], 172 BASE_CFLAGS=[cc_mode_flag],
172 BASE_CXXFLAGS=[cc_mode_flag], 173 BASE_CXXFLAGS=[cc_mode_flag],
173 BASE_ASFLAGS=[as_mode_flag], 174 BASE_ASFLAGS=[as_mode_flag],
174 BASE_ASPPFLAGS=[cc_mode_flag], 175 BASE_ASPPFLAGS=[cc_mode_flag],
175 CFLAGS=['-std=gnu99'], 176 CFLAGS=['-std=gnu99'],
176 CCFLAGS=['-O3', 177 CCFLAGS=['-O3',
177 '-Werror', 178 '-Werror',
178 '-Wall', 179 '-Wall',
179 '-Wno-variadic-macros', 180 '-Wno-variadic-macros',
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 # Dependency files it produces are to be found in ${LIBPATH}. 565 # Dependency files it produces are to be found in ${LIBPATH}.
565 # It is applied recursively to those dependencies in case 566 # It is applied recursively to those dependencies in case
566 # some of them are linker scripts too. 567 # some of them are linker scripts too.
567 ldscript_scanner = SCons.Scanner.Base( 568 ldscript_scanner = SCons.Scanner.Base(
568 function=ScanLinkerScript, 569 function=ScanLinkerScript,
569 skeys=['.a', '.so', '.pso'], 570 skeys=['.a', '.so', '.pso'],
570 path_function=SCons.Scanner.FindPathDirs('LIBPATH'), 571 path_function=SCons.Scanner.FindPathDirs('LIBPATH'),
571 recursive=True 572 recursive=True
572 ) 573 )
573 env.Append(SCANNERS=ldscript_scanner) 574 env.Append(SCANNERS=ldscript_scanner)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698