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

Side by Side Diff: pydir/build-runtime.py

Issue 1273153002: Subzero. Native 64-bit int arithmetic on x86-64. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 5 years, 4 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
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 shutil 5 import shutil
6 import tempfile 6 import tempfile
7 7
8 import targets 8 import targets
9 from utils import shellcmd 9 from utils import shellcmd
10 from utils import FindBaseNaCl 10 from utils import FindBaseNaCl
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 '-pnaclabi-allow-debug-metadata', 117 '-pnaclabi-allow-debug-metadata',
118 '{dir}/szrt.tmp.bc'.format(dir=tempdir), 118 '{dir}/szrt.tmp.bc'.format(dir=tempdir),
119 '-S', 119 '-S',
120 '-o', '{dir}/szrt.ll'.format(dir=tempdir) 120 '-o', '{dir}/szrt.ll'.format(dir=tempdir)
121 ], echo=args.verbose) 121 ], echo=args.verbose)
122 ll_files = ['{dir}/szrt.ll'.format(dir=tempdir), 122 ll_files = ['{dir}/szrt.ll'.format(dir=tempdir),
123 '{srcdir}/szrt_ll.ll'.format(srcdir=srcdir)] 123 '{srcdir}/szrt_ll.ll'.format(srcdir=srcdir)]
124 124
125 MakeRuntimesForTarget(targets.X8632Target, ll_files, 125 MakeRuntimesForTarget(targets.X8632Target, ll_files,
126 srcdir, tempdir, rtdir, args.verbose) 126 srcdir, tempdir, rtdir, args.verbose)
127 MakeRuntimesForTarget(targets.X8664Target, ll_files,
128 srcdir, tempdir, rtdir, args.verbose)
127 MakeRuntimesForTarget(targets.ARM32Target, ll_files, 129 MakeRuntimesForTarget(targets.ARM32Target, ll_files,
128 srcdir, tempdir, rtdir, args.verbose) 130 srcdir, tempdir, rtdir, args.verbose)
129 131
130 finally: 132 finally:
131 try: 133 try:
132 shutil.rmtree(tempdir) 134 shutil.rmtree(tempdir)
133 except OSError as exc: 135 except OSError as exc:
134 if exc.errno != errno.ENOENT: # ENOENT - no such file or directory 136 if exc.errno != errno.ENOENT: # ENOENT - no such file or directory
135 raise # re-raise exception 137 raise # re-raise exception
136 138
137 if __name__ == '__main__': 139 if __name__ == '__main__':
138 main() 140 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698