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

Unified Diff: pydir/targets.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/szbuild.py ('k') | pydir/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/targets.py
diff --git a/pydir/targets.py b/pydir/targets.py
index ea51c28446777cf9da0ffe94ce5f1d3edd24c5b2..1f73db13bcbd35549d04183385c4ae94164d633d 100644
--- a/pydir/targets.py
+++ b/pydir/targets.py
@@ -15,6 +15,9 @@ def FindARMCrossInclude():
return glob.glob(
'/usr/arm-linux-gnueabihf/include/c++/*/arm-linux-gnueabihf')[-1]
+def FindMIPSCrossInclude():
+ globs = glob.glob('/usr/mipsel-linux-gnu/include/c++/*/mipsel-linux-gnu')
+ return globs[-1] if globs else '/invalid/mips/include/path'
TargetInfo = namedtuple('TargetInfo',
['target', 'compiler_arch', 'triple', 'llc_flags',
@@ -41,10 +44,21 @@ ARM32Target = TargetInfo(target='arm32',
triple='armv7a-none-linux-gnueabihf',
llc_flags=['-mcpu=cortex-a9',
'-float-abi=hard',
- '-mattr=+neon'],
+ '-mattr=+neon',
+ '-arm-enable-dwarf-eh=1'],
ld_emu='armelf_nacl',
sb_emu='armelf_nacl',
cross_headers=['-isystem', FindARMCrossInclude()])
+# Investigate:
+# ld_emu script mips_nacl is not present in binutils. How to get it?
+MIPS32Target = TargetInfo(target='mips32',
+ compiler_arch='mips32',
+ triple='mipsel-linux-gnu',
+ llc_flags=[],
+ ld_emu='mips_nacl',
+ sb_emu='mips_nacl',
+ cross_headers=['-isystem', FindMIPSCrossInclude()])
+
def ConvertTripleToNaCl(nonsfi_triple):
return nonsfi_triple[:nonsfi_triple.find('-linux')] + '-nacl'
« no previous file with comments | « pydir/szbuild.py ('k') | pydir/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698