| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Recipes for PNaCl target libs.""" | 6 """Recipes for PNaCl target libs.""" |
| 7 | 7 |
| 8 import fnmatch | 8 import fnmatch |
| 9 import os | 9 import os |
| 10 import sys | 10 import sys |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 Triple = 'i686-linux-gnu' | 635 Triple = 'i686-linux-gnu' |
| 636 LlcArchArgs = [ '-mcpu=pentium4m'] | 636 LlcArchArgs = [ '-mcpu=pentium4m'] |
| 637 elif arch == 'x86-32': | 637 elif arch == 'x86-32': |
| 638 Triple = 'i686-none-nacl-gnu' | 638 Triple = 'i686-none-nacl-gnu' |
| 639 LlcArchArgs = [ '-mcpu=pentium4m'] | 639 LlcArchArgs = [ '-mcpu=pentium4m'] |
| 640 elif arch == 'x86-32-nonsfi': | 640 elif arch == 'x86-32-nonsfi': |
| 641 Triple = 'i686-linux-gnu' | 641 Triple = 'i686-linux-gnu' |
| 642 LlcArchArgs = [ '-mcpu=pentium4m', '-relocation-model=pic', | 642 LlcArchArgs = [ '-mcpu=pentium4m', '-relocation-model=pic', |
| 643 '-force-tls-non-pic', '-malign-double'] | 643 '-force-tls-non-pic', '-malign-double'] |
| 644 AsmSourceBase = 'szrt_asm_x8632' | 644 AsmSourceBase = 'szrt_asm_x8632' |
| 645 elif arch == 'x86-64-linux': |
| 646 Triple = 'x86_64-none-linux-gnux32' |
| 647 LlcArchArgs = [ '-mcpu=x86-64'] |
| 648 elif arch == 'x86-64': |
| 649 Triple = 'x86_64-none-nacl' |
| 650 LlcArchArgs = [ '-mcpu=x86-64'] |
| 645 elif arch == 'arm-linux': | 651 elif arch == 'arm-linux': |
| 646 Triple = 'arm-linux-gnu' | 652 Triple = 'arm-linux-gnu' |
| 647 LlcArchArgs = [ '-mcpu=cortex-a9'] | 653 LlcArchArgs = [ '-mcpu=cortex-a9'] |
| 648 elif arch == 'arm': | 654 elif arch == 'arm': |
| 649 Triple = 'arm-none-nacl-gnu' | 655 Triple = 'arm-none-nacl-gnu' |
| 650 LlcArchArgs = [ '-mcpu=cortex-a9'] | 656 LlcArchArgs = [ '-mcpu=cortex-a9'] |
| 651 else: | 657 else: |
| 652 return [] | 658 return [] |
| 653 LlcArchArgs.append('-mtriple=' + Triple) | 659 LlcArchArgs.append('-mtriple=' + Triple) |
| 654 return [ | 660 return [ |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 'includedir=' +os.path.join('%(output)s', | 944 'includedir=' +os.path.join('%(output)s', |
| 939 TripleFromArch(MultilibArch(arch)), | 945 TripleFromArch(MultilibArch(arch)), |
| 940 'include'), | 946 'include'), |
| 941 'libdir=' + os.path.join('%(output)s', MultilibLibDir(arch)), | 947 'libdir=' + os.path.join('%(output)s', MultilibLibDir(arch)), |
| 942 'install'] + scons_flags, | 948 'install'] + scons_flags, |
| 943 cwd=NACL_DIR), | 949 cwd=NACL_DIR), |
| 944 ], | 950 ], |
| 945 } | 951 } |
| 946 } | 952 } |
| 947 return libs | 953 return libs |
| OLD | NEW |