| OLD | NEW |
| 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 '--disable-zlib', | 683 '--disable-zlib', |
| 684 '--enable-optimized=' + ('no' if HostIsDebug(options) | 684 '--enable-optimized=' + ('no' if HostIsDebug(options) |
| 685 else 'yes'), | 685 else 'yes'), |
| 686 '--enable-debug=' + ('yes' if HostIsDebug(options) | 686 '--enable-debug=' + ('yes' if HostIsDebug(options) |
| 687 else 'no'), | 687 else 'no'), |
| 688 '--enable-targets=x86,arm,mips', | 688 '--enable-targets=x86,arm,mips', |
| 689 '--enable-werror=' + ('yes' if llvm_do_werror else 'no'), | 689 '--enable-werror=' + ('yes' if llvm_do_werror else 'no'), |
| 690 '--prefix=/', | 690 '--prefix=/', |
| 691 '--program-prefix=', | 691 '--program-prefix=', |
| 692 '--with-binutils-include=%(abs_binutils_pnacl_src)s/include', | 692 '--with-binutils-include=%(abs_binutils_pnacl_src)s/include', |
| 693 '--with-clang-srcdir=%(abs_clang_src)s' | 693 '--with-clang-srcdir=%(abs_clang_src)s', |
| 694 'ac_cv_have_decl_strerror_s=no', |
| 694 ] + shared)] + | 695 ] + shared)] + |
| 695 CopyHostLibcxxForLLVMBuild( | 696 CopyHostLibcxxForLLVMBuild( |
| 696 host, | 697 host, |
| 697 os.path.join(('Debug+Asserts' if HostIsDebug(options) | 698 os.path.join(('Debug+Asserts' if HostIsDebug(options) |
| 698 else 'Release+Asserts'), 'lib'), | 699 else 'Release+Asserts'), 'lib'), |
| 699 options) + | 700 options) + |
| 700 [command.Command(MakeCommand(host) + [ | 701 [command.Command(MakeCommand(host) + [ |
| 701 'VERBOSE=1', | 702 'VERBOSE=1', |
| 702 'PNACL_BROWSER_TRANSLATOR=0', | 703 'PNACL_BROWSER_TRANSLATOR=0', |
| 703 'SUBZERO_SRC_ROOT=%(abs_subzero_src)s', | 704 'SUBZERO_SRC_ROOT=%(abs_subzero_src)s', |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 'x86-32-%s' % pynacl.platform.GetOS(), unsandboxed_runtime_canonical)) | 1144 'x86-32-%s' % pynacl.platform.GetOS(), unsandboxed_runtime_canonical)) |
| 1144 | 1145 |
| 1145 if args.build_sbtc and not args.pnacl_in_pnacl: | 1146 if args.build_sbtc and not args.pnacl_in_pnacl: |
| 1146 packages.update(pnacl_sandboxed_translator.SandboxedTranslators( | 1147 packages.update(pnacl_sandboxed_translator.SandboxedTranslators( |
| 1147 SANDBOXED_TRANSLATOR_ARCHES)) | 1148 SANDBOXED_TRANSLATOR_ARCHES)) |
| 1148 | 1149 |
| 1149 tb = toolchain_main.PackageBuilder(packages, | 1150 tb = toolchain_main.PackageBuilder(packages, |
| 1150 upload_packages, | 1151 upload_packages, |
| 1151 leftover_args) | 1152 leftover_args) |
| 1152 tb.Main() | 1153 tb.Main() |
| OLD | NEW |