| OLD | NEW |
| 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 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 ARM32Target = TargetInfo(target='arm32', | 37 ARM32Target = TargetInfo(target='arm32', |
| 38 compiler_arch='armv7', | 38 compiler_arch='armv7', |
| 39 triple='armv7a-none-linux-gnueabihf', | 39 triple='armv7a-none-linux-gnueabihf', |
| 40 llc_flags=['-mcpu=cortex-a9', | 40 llc_flags=['-mcpu=cortex-a9', |
| 41 '-float-abi=hard', | 41 '-float-abi=hard', |
| 42 '-mattr=+neon'], | 42 '-mattr=+neon'], |
| 43 ld_emu='armelf_nacl', | 43 ld_emu='armelf_nacl', |
| 44 cross_headers=['-isystem', FindARMCrossInclude()]) | 44 cross_headers=['-isystem', FindARMCrossInclude()]) |
| 45 | 45 |
| 46 def ConvertTripleToNaCl(nonsfi_triple): | 46 def ConvertTripleToNaCl(nonsfi_triple): |
| 47 return nonsfi_triple.replace('linux', 'nacl') | 47 return nonsfi_triple[:nonsfi_triple.find('-linux')] + '-nacl' |
| OLD | NEW |