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

Side by Side Diff: pydir/crosstest.py

Issue 1027593002: Subzero: Support non-IRT immediate calls with -filetype=iasm. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | pydir/szbuild.py » ('j') | pydir/szbuild.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python2 1 #!/usr/bin/env python2
2 2
3 import argparse 3 import argparse
4 import os 4 import os
5 import subprocess 5 import subprocess
6 import sys 6 import sys
7 import tempfile 7 import tempfile
8 8
9 from utils import shellcmd 9 from utils import shellcmd
10 from utils import FindBaseNaCl 10 from utils import FindBaseNaCl
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 # Add szrt_sb_x8632.o or szrt_native_x8632.o. 139 # Add szrt_sb_x8632.o or szrt_native_x8632.o.
140 objs.append(( 140 objs.append((
141 '{root}/toolchain_build/src/subzero/build/runtime/' + 141 '{root}/toolchain_build/src/subzero/build/runtime/' +
142 'szrt_{sb}_' + args.target + '.o' 142 'szrt_{sb}_' + args.target + '.o'
143 ).format(root=nacl_root, sb='sb' if args.sandbox else 'native')) 143 ).format(root=nacl_root, sb='sb' if args.sandbox else 'native'))
144 pure_c = os.path.splitext(args.driver)[1] == '.c' 144 pure_c = os.path.splitext(args.driver)[1] == '.c'
145 # Set compiler to clang, clang++, pnacl-clang, or pnacl-clang++. 145 # Set compiler to clang, clang++, pnacl-clang, or pnacl-clang++.
146 compiler = '{bin}/{prefix}{cc}'.format( 146 compiler = '{bin}/{prefix}{cc}'.format(
147 bin=bindir, prefix='pnacl-' if args.sandbox else '', 147 bin=bindir, prefix='pnacl-' if args.sandbox else '',
148 cc='clang' if pure_c else 'clang++') 148 cc='clang' if pure_c else 'clang++')
149 sb_native_args = (['-O0', '--pnacl-allow-native', '-arch', 'x8632'] 149 sb_native_args = (['-O0', '--pnacl-allow-native', '-arch', 'x8632',
150 '-Wn,-defsym=__Sz_AbsoluteZero=0']
jvoung (off chromium) 2015/03/20 06:10:45 Subzero AbsoluteZero would be -0.0 ? =)
150 if args.sandbox else 151 if args.sandbox else
151 ['-g', '-m32', '-lm', '-lpthread']) 152 ['-g', '-m32', '-lm', '-lpthread',
153 '-Wl,--defsym=__Sz_AbsoluteZero=0'])
152 shellcmd([compiler, args.driver] + objs + 154 shellcmd([compiler, args.driver] + objs +
153 ['-o', os.path.join(args.dir, args.output)] + sb_native_args) 155 ['-o', os.path.join(args.dir, args.output)] + sb_native_args)
154 156
155 if __name__ == '__main__': 157 if __name__ == '__main__':
156 main() 158 main()
OLDNEW
« no previous file with comments | « no previous file | pydir/szbuild.py » ('j') | pydir/szbuild.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698