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

Side by Side Diff: toolchain_build/toolchain_build_pnacl.py

Issue 800553003: Update PNaCl to LLVM/Clang/Libcxx 223109 (nacl-change) (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: update clang revision Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « toolchain_build/pnacl_targetlibs.py ('k') | tools/toolchain_tester/known_failures_pnacl.txt » ('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) 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 toolchain packages. 6 """Recipes for PNaCl toolchain packages.
7 7
8 Recipes consist of specially-structured dictionaries, with keys for package 8 Recipes consist of specially-structured dictionaries, with keys for package
9 name, type, commands to execute, etc. The structure is documented in the 9 name, type, commands to execute, etc. The structure is documented in the
10 PackageBuilder docstring in toolchain_main.py. 10 PackageBuilder docstring in toolchain_main.py.
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 # LLVM's linux->mingw cross build needs this 226 # LLVM's linux->mingw cross build needs this
227 configure_args.append('CC_FOR_BUILD=gcc') 227 configure_args.append('CC_FOR_BUILD=gcc')
228 else: 228 else:
229 if TripleIsMac(host): 229 if TripleIsMac(host):
230 # This is required for building with recent libc++ against OSX 10.6 230 # This is required for building with recent libc++ against OSX 10.6
231 extra_cflags.append('-U__STRICT_ANSI__') 231 extra_cflags.append('-U__STRICT_ANSI__')
232 if options.gcc or host == 'le32-nacl': 232 if options.gcc or host == 'le32-nacl':
233 configure_args.extend(['CFLAGS=' + ' '.join(extra_cflags), 233 configure_args.extend(['CFLAGS=' + ' '.join(extra_cflags),
234 'CXXFLAGS=' + ' '.join(extra_cflags)]) 234 'CXXFLAGS=' + ' '.join(extra_cflags)])
235 else: 235 else:
236 # TODO(jvoung): Remove this after merging LLVM to be cleaner
237 # w.r.t. -Winconsistent-missing-override.
238 # https://code.google.com/p/nativeclient/issues/detail?id=4026
239 if not options.gcc:
240 extra_cflags.append('-Wno-inconsistent-missing-override')
241 configure_args.extend( 236 configure_args.extend(
242 ['CFLAGS=' + ' '.join(extra_cflags), 237 ['CFLAGS=' + ' '.join(extra_cflags),
243 'LDFLAGS=-L%(' + FlavoredName('abs_libcxx', 238 'LDFLAGS=-L%(' + FlavoredName('abs_libcxx',
244 host, 239 host,
245 options) + ')s/lib', 240 options) + ')s/lib',
246 'CXXFLAGS=-stdlib=libc++ -I%(' + 241 'CXXFLAGS=-stdlib=libc++ -I%(' +
247 FlavoredName('abs_libcxx', host, options) + 242 FlavoredName('abs_libcxx', host, options) +
248 ')s/include/c++/v1 ' + ' '.join(extra_cflags)]) 243 ')s/include/c++/v1 ' + ' '.join(extra_cflags)])
249 244
250 return configure_args 245 return configure_args
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 'x86-32-%s' % pynacl.platform.GetOS(), unsandboxed_irt_canonical)) 1115 'x86-32-%s' % pynacl.platform.GetOS(), unsandboxed_irt_canonical))
1121 1116
1122 if args.build_sbtc and not args.pnacl_in_pnacl: 1117 if args.build_sbtc and not args.pnacl_in_pnacl:
1123 packages.update(pnacl_sandboxed_translator.SandboxedTranslators( 1118 packages.update(pnacl_sandboxed_translator.SandboxedTranslators(
1124 SANDBOXED_TRANSLATOR_ARCHES)) 1119 SANDBOXED_TRANSLATOR_ARCHES))
1125 1120
1126 tb = toolchain_main.PackageBuilder(packages, 1121 tb = toolchain_main.PackageBuilder(packages,
1127 upload_packages, 1122 upload_packages,
1128 leftover_args) 1123 leftover_args)
1129 tb.Main() 1124 tb.Main()
OLDNEW
« no previous file with comments | « toolchain_build/pnacl_targetlibs.py ('k') | tools/toolchain_tester/known_failures_pnacl.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698