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

Side by Side Diff: pydir/targets.py

Issue 1499973002: Revert "Subzero. ARM32. Initial sandboxing code." (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years 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/szbuild.py ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python2 1 #!/usr/bin/env python2
2 2
3 from collections import namedtuple 3 from collections import namedtuple
4 import glob 4 import glob
5 5
6 6
7 # Why have 'cross_headers': 7 # Why have 'cross_headers':
8 # For some reason, clang doesn't know how to find some of the libstdc++ 8 # For some reason, clang doesn't know how to find some of the libstdc++
9 # headers (c++config.h). Manually add in one of the paths: 9 # headers (c++config.h). Manually add in one of the paths:
10 # https://llvm.org/bugs/show_bug.cgi?id=22937 10 # https://llvm.org/bugs/show_bug.cgi?id=22937
11 # Otherwise, we could assume the system has arm-linux-gnueabihf-g++ and 11 # Otherwise, we could assume the system has arm-linux-gnueabihf-g++ and
12 # use that instead of clang, but so far we've just been using clang for 12 # use that instead of clang, but so far we've just been using clang for
13 # the unsandboxed build. 13 # the unsandboxed build.
14 def FindARMCrossInclude(): 14 def FindARMCrossInclude():
15 return glob.glob( 15 return glob.glob(
16 '/usr/arm-linux-gnueabihf/include/c++/*/arm-linux-gnueabihf')[-1] 16 '/usr/arm-linux-gnueabihf/include/c++/*/arm-linux-gnueabihf')[-1]
17 17
18 18
19 TargetInfo = namedtuple('TargetInfo', 19 TargetInfo = namedtuple('TargetInfo',
20 ['target', 'compiler_arch', 'triple', 'llc_flags', 20 ['target', 'triple', 'llc_flags', 'ld_emu',
21 'ld_emu', 'cross_headers']) 21 'cross_headers'])
22 22
23 X8632Target = TargetInfo(target='x8632', 23 X8632Target = TargetInfo(target='x8632',
24 compiler_arch='x8632',
25 triple='i686-none-linux', 24 triple='i686-none-linux',
26 llc_flags=['-mcpu=pentium4m'], 25 llc_flags=['-mcpu=pentium4m'],
27 ld_emu='elf_i386_nacl', 26 ld_emu='elf_i386_nacl',
28 cross_headers=[]) 27 cross_headers=[])
29 28
30 X8664Target = TargetInfo(target='x8664', 29 X8664Target = TargetInfo(target='x8664',
31 compiler_arch='x8664',
32 triple='x86_64-none-linux', 30 triple='x86_64-none-linux',
33 llc_flags=['-mcpu=x86-64'], 31 llc_flags=['-mcpu=x86-64'],
34 ld_emu='elf_x86_64_nacl', 32 ld_emu='elf_x86_64_nacl',
35 cross_headers=[]) 33 cross_headers=[])
36 34
37 ARM32Target = TargetInfo(target='arm32', 35 ARM32Target = TargetInfo(target='arm32',
38 compiler_arch='armv7',
39 triple='armv7a-none-linux-gnueabihf', 36 triple='armv7a-none-linux-gnueabihf',
40 llc_flags=['-mcpu=cortex-a9', 37 llc_flags=['-mcpu=cortex-a9',
41 '-float-abi=hard', 38 '-float-abi=hard',
42 '-mattr=+neon'], 39 '-mattr=+neon'],
43 ld_emu='armelf_nacl', 40 ld_emu='armelf_nacl',
44 cross_headers=['-isystem', FindARMCrossInclude()]) 41 cross_headers=['-isystem', FindARMCrossInclude()])
45 42
46 def ConvertTripleToNaCl(nonsfi_triple): 43 def ConvertTripleToNaCl(nonsfi_triple):
47 return nonsfi_triple.replace('linux', 'nacl') 44 return nonsfi_triple.replace('linux', 'nacl')
OLDNEW
« no previous file with comments | « pydir/szbuild.py ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698