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

Unified 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, 3 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 | « pydir/targets.py ('k') | runtime/szrt_asm_mips32.s » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/utils.py
diff --git a/pydir/utils.py b/pydir/utils.py
index 295671f1bf38e33db14ffe55c92ee029de617238..121e2e218efcef01c3699092c0a7d13da4521f30 100644
--- a/pydir/utils.py
+++ b/pydir/utils.py
@@ -2,12 +2,16 @@ import os
import subprocess
import sys
-def GetObjcopyCmd():
+def GetObjcopyCmd(target):
"""Return a suitable objcopy command."""
+ if target == 'mips32':
+ return 'mipsel-nacl-objcopy'
return 'arm-nacl-objcopy'
-def GetObjdumpCmd():
+def GetObjdumpCmd(target):
"""Return a suitable objdump command."""
+ if target == 'mips32':
+ return 'mipsel-nacl-objdump'
return 'arm-nacl-objdump'
def shellcmd(command, echo=True):
« 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