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

Side by Side Diff: native_client_sdk/src/build_tools/build_sdk.py

Issue 1246133002: [NaCl SDK] Fix bionic SDK build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium 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 """Entry point for both build and try bots. 6 """Entry point for both build and try bots.
7 7
8 This script is invoked from XXX, usually without arguments 8 This script is invoked from XXX, usually without arguments
9 to package an SDK. It automatically determines whether 9 to package an SDK. It automatically determines whether
10 this SDK is for mac, win, linux. 10 this SDK is for mac, win, linux.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 def GetGypBuiltLib(tcname, arch): 120 def GetGypBuiltLib(tcname, arch):
121 if arch == 'ia32': 121 if arch == 'ia32':
122 lib_suffix = '32' 122 lib_suffix = '32'
123 elif arch == 'x64': 123 elif arch == 'x64':
124 lib_suffix = '64' 124 lib_suffix = '64'
125 elif arch == 'arm': 125 elif arch == 'arm':
126 lib_suffix = 'arm' 126 lib_suffix = 'arm'
127 else: 127 else:
128 lib_suffix = '' 128 lib_suffix = ''
129 129
130 tcdir = 'tc_' + GetToolchainLibc(tcname) 130 if tcname == 'arm_bionic':
131 tcdir = 'tc_newlib'
132 else:
133 tcdir = 'tc_' + GetToolchainLibc(tcname)
131 134
132 if tcname == 'pnacl': 135 if tcname == 'pnacl':
133 if arch is None: 136 if arch is None:
134 lib_suffix = '' 137 lib_suffix = ''
135 tcdir = 'tc_pnacl_newlib' 138 tcdir = 'tc_pnacl_newlib'
136 arch = 'x64' 139 arch = 'x64'
137 else: 140 else:
138 arch = 'clang-' + arch 141 arch = 'clang-' + arch
139 142
140 return os.path.join(GetNinjaOutDir(arch), 'gen', tcdir, 'lib' + lib_suffix) 143 return os.path.join(GetNinjaOutDir(arch), 'gen', tcdir, 'lib' + lib_suffix)
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 BuildStepArchivePNaClComponent(chrome_revision) 1161 BuildStepArchivePNaClComponent(chrome_revision)
1159 1162
1160 return 0 1163 return 0
1161 1164
1162 1165
1163 if __name__ == '__main__': 1166 if __name__ == '__main__':
1164 try: 1167 try:
1165 sys.exit(main(sys.argv[1:])) 1168 sys.exit(main(sys.argv[1:]))
1166 except KeyboardInterrupt: 1169 except KeyboardInterrupt:
1167 buildbot_common.ErrorExit('build_sdk: interrupted') 1170 buildbot_common.ErrorExit('build_sdk: interrupted')
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