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

Side by Side Diff: site_scons/site_tools/naclsdk.py

Issue 62643002: Deploy new x86 binutils (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: add TODO comment; disable ncval-using test when using old ncval Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « build/untrusted.gypi ('k') | src/trusted/service_runtime/nacl.scons » ('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/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 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 """NaCl SDK tool SCons.""" 6 """NaCl SDK tool SCons."""
7 7
8 import __builtin__ 8 import __builtin__
9 import re 9 import re
10 import os 10 import os
(...skipping 24 matching lines...) Expand all
35 'cc_flag': '', 35 'cc_flag': '',
36 'ld_flag': '', 36 'ld_flag': '',
37 }, 37 },
38 }, 38 },
39 'x86': { 39 'x86': {
40 '32': { 40 '32': {
41 'tooldir': 'i686-nacl', 41 'tooldir': 'i686-nacl',
42 'other_libdir': 'lib32', 42 'other_libdir': 'lib32',
43 'as_flag': '--32', 43 'as_flag': '--32',
44 'cc_flag': '-m32', 44 'cc_flag': '-m32',
45 'ld_flag': ' -melf_nacl', 45 'ld_flag': ' -melf_i386_nacl',
46 }, 46 },
47 '64': { 47 '64': {
48 'tooldir': 'x86_64-nacl', 48 'tooldir': 'x86_64-nacl',
49 'other_libdir': 'lib64', 49 'other_libdir': 'lib64',
50 'as_flag': '--64', 50 'as_flag': '--64',
51 'cc_flag': '-m64', 51 'cc_flag': '-m64',
52 'ld_flag': ' -melf64_nacl', 52 'ld_flag': ' -melf_x86_64_nacl',
53 }, 53 },
54 }, 54 },
55 } 55 }
56 56
57 def _StubOutEnvToolsForBuiltElsewhere(env): 57 def _StubOutEnvToolsForBuiltElsewhere(env):
58 """Stub out all tools so that they point to 'true'. 58 """Stub out all tools so that they point to 'true'.
59 59
60 Some machines have their code built by another machine, they'll therefore 60 Some machines have their code built by another machine, they'll therefore
61 run 'true' instead of running the usual build tools. 61 run 'true' instead of running the usual build tools.
62 62
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 # Scons tests can check this version number to decide whether to 802 # Scons tests can check this version number to decide whether to
803 # enable tests for toolchain bug fixes or new features. See 803 # enable tests for toolchain bug fixes or new features. See
804 # description in pnacl/build.sh. 804 # description in pnacl/build.sh.
805 version_file = os.path.join(root, 'FEATURE_VERSION') 805 version_file = os.path.join(root, 'FEATURE_VERSION')
806 if os.path.exists(version_file): 806 if os.path.exists(version_file):
807 with open(version_file, 'r') as fh: 807 with open(version_file, 'r') as fh:
808 version = int(fh.read()) 808 version = int(fh.read())
809 else: 809 else:
810 version = 0 810 version = 0
811 env.Replace(TOOLCHAIN_FEATURE_VERSION=version) 811 env.Replace(TOOLCHAIN_FEATURE_VERSION=version)
OLDNEW
« no previous file with comments | « build/untrusted.gypi ('k') | src/trusted/service_runtime/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698