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/toolchain_build_pnacl.py

Issue 1082953002: Add configure/CMake flags for conditionally building subzero targets. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Update LLVM too Created 5 years, 8 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 | « pnacl/build.sh ('k') | 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 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 '-DLLVM_BINUTILS_INCDIR=%(abs_binutils_pnacl_src)s/include', 685 '-DLLVM_BINUTILS_INCDIR=%(abs_binutils_pnacl_src)s/include',
686 '-DLLVM_BUILD_TESTS=ON', 686 '-DLLVM_BUILD_TESTS=ON',
687 '-DLLVM_ENABLE_ASSERTIONS=ON', 687 '-DLLVM_ENABLE_ASSERTIONS=ON',
688 '-DLLVM_ENABLE_LIBCXX=OFF', 688 '-DLLVM_ENABLE_LIBCXX=OFF',
689 '-LLVM_ENABLE_WERROR=' + ('ON' if llvm_do_werror else 'OFF'), 689 '-LLVM_ENABLE_WERROR=' + ('ON' if llvm_do_werror else 'OFF'),
690 '-DLLVM_ENABLE_ZLIB=OFF', 690 '-DLLVM_ENABLE_ZLIB=OFF',
691 '-DLLVM_EXTERNAL_CLANG_SOURCE_DIR=%(clang_src)s', 691 '-DLLVM_EXTERNAL_CLANG_SOURCE_DIR=%(clang_src)s',
692 '-DLLVM_EXTERNAL_SUBZERO_SOURCE_DIR=%(subzero_src)s', 692 '-DLLVM_EXTERNAL_SUBZERO_SOURCE_DIR=%(subzero_src)s',
693 '-DLLVM_INSTALL_UTILS=ON', 693 '-DLLVM_INSTALL_UTILS=ON',
694 '-DLLVM_TARGETS_TO_BUILD=X86;ARM;Mips;JSBackend', 694 '-DLLVM_TARGETS_TO_BUILD=X86;ARM;Mips;JSBackend',
695 '-DSUBZERO_TARGETS_TO_BUILD=X8632;ARM32',
695 '%(llvm_src)s'], 696 '%(llvm_src)s'],
696 # Older CMake ignore CMAKE_*_LINKER_FLAGS during config step. 697 # Older CMake ignore CMAKE_*_LINKER_FLAGS during config step.
697 # https://public.kitware.com/Bug/view.php?id=14066 698 # https://public.kitware.com/Bug/view.php?id=14066
698 # The workaround is to set LDFLAGS in the environment. 699 # The workaround is to set LDFLAGS in the environment.
699 # TODO(jvoung): remove the ability to override env vars 700 # TODO(jvoung): remove the ability to override env vars
700 # from "command" once the CMake fix propagates and we can 701 # from "command" once the CMake fix propagates and we can
701 # stop using this env var hack. 702 # stop using this env var hack.
702 env={'LDFLAGS' : ' '.join( 703 env={'LDFLAGS' : ' '.join(
703 HostArchToolFlags(host, [], options)['LDFLAGS'])})] + 704 HostArchToolFlags(host, [], options)['LDFLAGS'])})] +
704 CopyHostLibcxxForLLVMBuild(host, 'lib', options) + 705 CopyHostLibcxxForLLVMBuild(host, 'lib', options) +
(...skipping 24 matching lines...) Expand all
729 [ 730 [
730 '--disable-bindings', # ocaml is currently the only binding. 731 '--disable-bindings', # ocaml is currently the only binding.
731 '--disable-jit', 732 '--disable-jit',
732 '--disable-terminfo', 733 '--disable-terminfo',
733 '--disable-zlib', 734 '--disable-zlib',
734 '--enable-optimized=' + ('no' if HostIsDebug(options) 735 '--enable-optimized=' + ('no' if HostIsDebug(options)
735 else 'yes'), 736 else 'yes'),
736 '--enable-debug=' + ('yes' if HostIsDebug(options) 737 '--enable-debug=' + ('yes' if HostIsDebug(options)
737 else 'no'), 738 else 'no'),
738 '--enable-targets=x86,arm,mips,js', 739 '--enable-targets=x86,arm,mips,js',
740 '--enable-subzero-targets=X8632,ARM32',
739 '--enable-werror=' + ('yes' if llvm_do_werror else 'no'), 741 '--enable-werror=' + ('yes' if llvm_do_werror else 'no'),
740 '--prefix=/', 742 '--prefix=/',
741 '--program-prefix=', 743 '--program-prefix=',
742 '--with-binutils-include=%(abs_binutils_pnacl_src)s/include', 744 '--with-binutils-include=%(abs_binutils_pnacl_src)s/include',
743 '--with-clang-srcdir=%(abs_clang_src)s', 745 '--with-clang-srcdir=%(abs_clang_src)s',
744 'ac_cv_have_decl_strerror_s=no', 746 'ac_cv_have_decl_strerror_s=no',
745 ] + shared)] + 747 ] + shared)] +
746 CopyHostLibcxxForLLVMBuild( 748 CopyHostLibcxxForLLVMBuild(
747 host, 749 host,
748 os.path.join(('Debug+Asserts' if HostIsDebug(options) 750 os.path.join(('Debug+Asserts' if HostIsDebug(options)
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 'x86-32-%s' % pynacl.platform.GetOS(), unsandboxed_runtime_canonical)) 1193 'x86-32-%s' % pynacl.platform.GetOS(), unsandboxed_runtime_canonical))
1192 1194
1193 if args.build_sbtc and not args.pnacl_in_pnacl: 1195 if args.build_sbtc and not args.pnacl_in_pnacl:
1194 packages.update(pnacl_sandboxed_translator.SandboxedTranslators( 1196 packages.update(pnacl_sandboxed_translator.SandboxedTranslators(
1195 SANDBOXED_TRANSLATOR_ARCHES)) 1197 SANDBOXED_TRANSLATOR_ARCHES))
1196 1198
1197 tb = toolchain_main.PackageBuilder(packages, 1199 tb = toolchain_main.PackageBuilder(packages,
1198 upload_packages, 1200 upload_packages,
1199 leftover_args) 1201 leftover_args)
1200 tb.Main() 1202 tb.Main()
OLDNEW
« no previous file with comments | « pnacl/build.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698