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

Side by Side Diff: trunk/src/native_client/site_scons/site_tools/naclsdk.py

Issue 71933002: Revert 12382 "Deploy new x86 binutils" (Closed) Base URL: svn://svn.chromium.org/native_client/
Patch Set: 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
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_i386_nacl', 45 'ld_flag': ' -melf_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': ' -melf_x86_64_nacl', 52 'ld_flag': ' -melf64_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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 if 'toolchain_feature_version' in SCons.Script.ARGUMENTS: 805 if 'toolchain_feature_version' in SCons.Script.ARGUMENTS:
806 version = int(SCons.Script.ARGUMENTS['toolchain_feature_version']) 806 version = int(SCons.Script.ARGUMENTS['toolchain_feature_version'])
807 else: 807 else:
808 version_file = os.path.join(root, 'FEATURE_VERSION') 808 version_file = os.path.join(root, 'FEATURE_VERSION')
809 if os.path.exists(version_file): 809 if os.path.exists(version_file):
810 with open(version_file, 'r') as fh: 810 with open(version_file, 'r') as fh:
811 version = int(fh.read()) 811 version = int(fh.read())
812 else: 812 else:
813 version = 0 813 version = 0
814 env.Replace(TOOLCHAIN_FEATURE_VERSION=version) 814 env.Replace(TOOLCHAIN_FEATURE_VERSION=version)
OLDNEW
« no previous file with comments | « trunk/src/native_client/build/untrusted.gypi ('k') | trunk/src/native_client/src/trusted/service_runtime/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698