OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
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 #@ PNaCl toolchain build script | 6 #@ PNaCl toolchain build script |
7 #@------------------------------------------------------------------- | 7 #@------------------------------------------------------------------- |
8 #@ This script builds the ARM and PNaCl untrusted toolchains. | 8 #@ This script builds the ARM and PNaCl untrusted toolchains. |
9 #@ It MUST be run from the native_client/ directory. | 9 #@ It MUST be run from the native_client/ directory. |
10 ###################################################################### | 10 ###################################################################### |
(...skipping 2739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2750 feature-version-file-install() { | 2750 feature-version-file-install() { |
2751 local install_root=$1 | 2751 local install_root=$1 |
2752 # Scons tests can check this version number to decide whether to | 2752 # Scons tests can check this version number to decide whether to |
2753 # enable tests for toolchain bug fixes or new features. This allows | 2753 # enable tests for toolchain bug fixes or new features. This allows |
2754 # tests to be enabled on the toolchain buildbots/trybots before the | 2754 # tests to be enabled on the toolchain buildbots/trybots before the |
2755 # new toolchain version is rolled into the pinned version (i.e. before | 2755 # new toolchain version is rolled into the pinned version (i.e. before |
2756 # the tests would pass on the main NaCl buildbots/trybots). | 2756 # the tests would pass on the main NaCl buildbots/trybots). |
2757 # | 2757 # |
2758 # If you are adding a test that depends on a toolchain change, you | 2758 # If you are adding a test that depends on a toolchain change, you |
2759 # can increment this version number manually. | 2759 # can increment this version number manually. |
2760 echo 5 > "${install_root}/FEATURE_VERSION" | 2760 echo 6 > "${install_root}/FEATURE_VERSION" |
2761 } | 2761 } |
2762 | 2762 |
2763 # The driver is a simple python script which changes its behavior | 2763 # The driver is a simple python script which changes its behavior |
2764 # depending on the name it is invoked as. | 2764 # depending on the name it is invoked as. |
2765 driver-install() { | 2765 driver-install() { |
2766 local bindir=bin | 2766 local bindir=bin |
2767 # On Linux we ship a fat toolchain with 2 sets of binaries defaulting to | 2767 # On Linux we ship a fat toolchain with 2 sets of binaries defaulting to |
2768 # x86-32 (mostly because of the 32 bit chrome bots). So the default | 2768 # x86-32 (mostly because of the 32 bit chrome bots). So the default |
2769 # bin dir is 32, and the bin64 driver runs the 64 bit binaries | 2769 # bin dir is 32, and the bin64 driver runs the 64 bit binaries |
2770 if ${HOST_ARCH_X8664} && ${BUILD_PLATFORM_LINUX}; then | 2770 if ${HOST_ARCH_X8664} && ${BUILD_PLATFORM_LINUX}; then |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3365 | 3365 |
3366 if [ "$(type -t $1)" != "function" ]; then | 3366 if [ "$(type -t $1)" != "function" ]; then |
3367 #Usage | 3367 #Usage |
3368 echo "ERROR: unknown function '$1'." >&2 | 3368 echo "ERROR: unknown function '$1'." >&2 |
3369 echo "For help, try:" | 3369 echo "For help, try:" |
3370 echo " $0 help" | 3370 echo " $0 help" |
3371 exit 1 | 3371 exit 1 |
3372 fi | 3372 fi |
3373 | 3373 |
3374 "$@" | 3374 "$@" |
OLD | NEW |