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

Side by Side Diff: pydir/utils.py

Issue 2085303002: Subzero, MIPS32: Cross-testing enabled for MIPS32 (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix typo for srlv opcode Created 4 years, 2 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 | « pydir/targets.py ('k') | runtime/szrt_asm_mips32.s » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import os 1 import os
2 import subprocess 2 import subprocess
3 import sys 3 import sys
4 4
5 def GetObjcopyCmd(): 5 def GetObjcopyCmd(target):
6 """Return a suitable objcopy command.""" 6 """Return a suitable objcopy command."""
7 if target == 'mips32':
8 return 'mipsel-nacl-objcopy'
7 return 'arm-nacl-objcopy' 9 return 'arm-nacl-objcopy'
8 10
9 def GetObjdumpCmd(): 11 def GetObjdumpCmd(target):
10 """Return a suitable objdump command.""" 12 """Return a suitable objdump command."""
13 if target == 'mips32':
14 return 'mipsel-nacl-objdump'
11 return 'arm-nacl-objdump' 15 return 'arm-nacl-objdump'
12 16
13 def shellcmd(command, echo=True): 17 def shellcmd(command, echo=True):
14 if not isinstance(command, str): 18 if not isinstance(command, str):
15 command = ' '.join(command) 19 command = ' '.join(command)
16 20
17 if echo: 21 if echo:
18 print >> sys.stderr, '[cmd]' 22 print >> sys.stderr, '[cmd]'
19 print >> sys.stderr, command 23 print >> sys.stderr, command
20 print >> sys.stderr 24 print >> sys.stderr
(...skipping 15 matching lines...) Expand all
36 return os.sep.join(path_list[:last_index]) 40 return os.sep.join(path_list[:last_index])
37 41
38 def get_sfi_string(args, sb_ret, nonsfi_ret, native_ret): 42 def get_sfi_string(args, sb_ret, nonsfi_ret, native_ret):
39 """Return a value depending on args.sandbox and args.nonsfi.""" 43 """Return a value depending on args.sandbox and args.nonsfi."""
40 if args.sandbox: 44 if args.sandbox:
41 assert(not args.nonsfi) 45 assert(not args.nonsfi)
42 return sb_ret 46 return sb_ret
43 if args.nonsfi: 47 if args.nonsfi:
44 return nonsfi_ret 48 return nonsfi_ret
45 return native_ret 49 return native_ret
OLDNEW
« no previous file with comments | « pydir/targets.py ('k') | runtime/szrt_asm_mips32.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698