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

Side by Side Diff: pnacl/build.sh

Issue 8776023: Switch the nop pnacl x86-64 IRT shim to the real one generated from IDL. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: disable pnacl_example_browser for x86-64 until shim updated Created 9 years 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 | « SConstruct ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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" \
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
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 "$@"
OLDNEW
« no previous file with comments | « SConstruct ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698