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

Unified Diff: pydir/targets.py

Issue 1160873006: Set up crosstest to run simple loop in Om1 on ARM (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: review Created 5 years, 6 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/crosstest_generator.py ('k') | no next file » | 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
new file mode 100644
index 0000000000000000000000000000000000000000..0f6433c30e0f414001606ad68f6c25ecf2220801
--- /dev/null
+++ b/pydir/targets.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python2
+
+from collections import namedtuple
+
+TargetInfo = namedtuple('TargetInfo',
+ ['target', 'triple', 'llc_flags', 'ld_emu'])
+
+X8632Target = TargetInfo(target='x8632',
+ triple='i686-none-linux',
+ llc_flags=['-mcpu=pentium4m'],
+ ld_emu='elf_i386_nacl')
+
+X8664Target = TargetInfo(target='x8664',
+ triple='x86_64-none-linux',
+ llc_flags=['-mcpu=x86-64'],
+ ld_emu='elf_x86_64_nacl')
+
+ARM32Target = TargetInfo(target='arm32',
+ triple='armv7a-none-linux-gnueabihf',
+ llc_flags=['-mcpu=cortex-a9',
+ '-float-abi=hard',
+ '-mattr=+neon'],
+ ld_emu='armelf_nacl')
+
+
+def ConvertTripleToNaCl(nonsfi_triple):
+ return nonsfi_triple.replace('linux', 'nacl')
« no previous file with comments | « pydir/crosstest_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698