Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 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 #@ Untrusted Toolchain Manager | 6 #@ Untrusted Toolchain Manager |
| 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 3030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3041 install_lib \ | 3041 install_lib \ |
| 3042 libdir="$(PosixToSysPath "${INSTALL_SDK_LIB}")" | 3042 libdir="$(PosixToSysPath "${INSTALL_SDK_LIB}")" |
| 3043 spopd | 3043 spopd |
| 3044 } | 3044 } |
| 3045 | 3045 |
| 3046 sdk-irt-shim() { | 3046 sdk-irt-shim() { |
| 3047 # NOTE: This uses the nacl-gcc toolchain, causing | 3047 # NOTE: This uses the nacl-gcc toolchain, causing |
| 3048 # the pnacl toolchain to depend on it. | 3048 # the pnacl toolchain to depend on it. |
| 3049 StepBanner "SDK" "IRT Shim" | 3049 StepBanner "SDK" "IRT Shim" |
| 3050 spushd "${NACL_ROOT}" | 3050 spushd "${NACL_ROOT}" |
| 3051 # NOTE: We specify bitcode=1, but it is really using nacl-gcc to build | |
| 3052 # the library (it's only bitcode=1 because it's part of the pnacl sdk). | |
| 3051 RunWithLog "sdk.irt.shim" \ | 3053 RunWithLog "sdk.irt.shim" \ |
|
robertm
2011/12/01 22:55:43
this looks like churn why not stick with the origi
jvoung - send to chromium...
2011/12/01 23:35:34
I think this was to make the implicit-libs change
robertm
2011/12/01 23:58:43
Ok that is fine then - but maybe add a brief comm
| |
| 3052 ./scons -j${PNACL_CONCURRENCY} \ | 3054 ./scons -j${PNACL_CONCURRENCY} \ |
| 3055 bitcode=1 \ | |
| 3053 platform=x86-64 \ | 3056 platform=x86-64 \ |
| 3054 naclsdk_validate=0 \ | 3057 naclsdk_validate=0 \ |
| 3055 --verbose \ | 3058 --verbose \ |
| 3056 pnacl_irt_shim | 3059 pnacl_irt_shim |
| 3057 local outdir="${SCONS_OUT}"/nacl-x86-64/obj/src/untrusted/pnacl_irt_shim | 3060 local out_dir_prefix="${SCONS_OUT}"/nacl-x86-64-pnacl-clang |
| 3061 local outdir="${out_dir_prefix}"/obj/src/untrusted/pnacl_irt_shim | |
| 3058 mkdir -p "${INSTALL_LIB_X8664}" | 3062 mkdir -p "${INSTALL_LIB_X8664}" |
| 3059 cp "${outdir}"/libpnacl_irt_shim.a "${INSTALL_LIB_X8664}" | 3063 cp "${outdir}"/libpnacl_irt_shim.a "${INSTALL_LIB_X8664}" |
| 3060 spopd | 3064 spopd |
| 3061 } | 3065 } |
| 3062 | 3066 |
| 3063 sdk-verify() { | 3067 sdk-verify() { |
| 3064 # This avoids errors when *.o finds no matches. | 3068 # This avoids errors when *.o finds no matches. |
| 3065 shopt -s nullglob | 3069 shopt -s nullglob |
| 3066 | 3070 |
| 3067 StepBanner "SDK" "Verify" | 3071 StepBanner "SDK" "Verify" |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3778 #Usage | 3782 #Usage |
| 3779 echo "ERROR: unknown function '$1'." >&2 | 3783 echo "ERROR: unknown function '$1'." >&2 |
| 3780 echo "For help, try:" | 3784 echo "For help, try:" |
| 3781 echo " $0 help" | 3785 echo " $0 help" |
| 3782 exit 1 | 3786 exit 1 |
| 3783 fi | 3787 fi |
| 3784 | 3788 |
| 3785 hg-migrate | 3789 hg-migrate |
| 3786 | 3790 |
| 3787 "$@" | 3791 "$@" |
| OLD | NEW |