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

Side by Side Diff: toolchain_build/pnacl_targetlibs.py

Issue 1692253005: Subzero: Build x86-64 target libs. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698