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

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: xyz 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
« pydir/crosstest_generator.py ('K') | « 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..405cc855eaeafa61b18cca961254d45d102bc5cd
--- /dev/null
+++ b/pydir/targets.py
@@ -0,0 +1,26 @@
+
Jim Stichnoth 2015/06/17 01:14:10 prepend the shebang line?
jvoung (off chromium) 2015/06/17 17:07:53 Done.
+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')
« pydir/crosstest_generator.py ('K') | « pydir/crosstest_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698