| 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 #@ 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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1303 local binutils_include="${TC_SRC_BINUTILS}/binutils-2.20/include" | 1303 local binutils_include="${TC_SRC_BINUTILS}/binutils-2.20/include" |
| 1304 RunWithLog "llvm.configure" \ | 1304 RunWithLog "llvm.configure" \ |
| 1305 env -i PATH=/usr/bin/:/bin \ | 1305 env -i PATH=/usr/bin/:/bin \ |
| 1306 MAKE_OPTS=${MAKE_OPTS} \ | 1306 MAKE_OPTS=${MAKE_OPTS} \ |
| 1307 CC="${CC}" \ | 1307 CC="${CC}" \ |
| 1308 CXX="${CXX}" \ | 1308 CXX="${CXX}" \ |
| 1309 ${srcdir}/configure \ | 1309 ${srcdir}/configure \ |
| 1310 --enable-shared \ | 1310 --enable-shared \ |
| 1311 --disable-jit \ | 1311 --disable-jit \ |
| 1312 --with-binutils-include=${binutils_include} \ | 1312 --with-binutils-include=${binutils_include} \ |
| 1313 --enable-targets=x86,arm \ | 1313 --enable-targets=x86,arm,mips \ |
| 1314 --target=${CROSS_TARGET_ARM} \ | 1314 --target=${CROSS_TARGET_ARM} \ |
| 1315 --prefix="${LLVM_INSTALL_DIR}" \ | 1315 --prefix="${LLVM_INSTALL_DIR}" \ |
| 1316 --program-prefix= \ | 1316 --program-prefix= \ |
| 1317 ${llvm_extra_opts} | 1317 ${llvm_extra_opts} |
| 1318 | 1318 |
| 1319 | 1319 |
| 1320 spopd | 1320 spopd |
| 1321 } | 1321 } |
| 1322 | 1322 |
| 1323 #+ llvm-configure-dbg - Run LLVM configure | 1323 #+ llvm-configure-dbg - Run LLVM configure |
| (...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2432 ${srcdir}/libiberty/configure --prefix="${BINUTILS_INSTALL_DIR}" | 2432 ${srcdir}/libiberty/configure --prefix="${BINUTILS_INSTALL_DIR}" |
| 2433 | 2433 |
| 2434 spopd | 2434 spopd |
| 2435 | 2435 |
| 2436 StepBanner "GOLD-NATIVE" "Configure (gold)" | 2436 StepBanner "GOLD-NATIVE" "Configure (gold)" |
| 2437 # NOTE: we are still building one unnecessary target: "32bit big-endian" | 2437 # NOTE: we are still building one unnecessary target: "32bit big-endian" |
| 2438 # which is dragged in by targ_extra_big_endian=true in | 2438 # which is dragged in by targ_extra_big_endian=true in |
| 2439 # pnacl/src/gold/gold/configure.tgt | 2439 # pnacl/src/gold/gold/configure.tgt |
| 2440 # removing it causes undefined symbols during linking of gold. | 2440 # removing it causes undefined symbols during linking of gold. |
| 2441 # The potential savings are guesstimated to be 300kB in binary size | 2441 # The potential savings are guesstimated to be 300kB in binary size |
| 2442 local gold_targets="i686-pc-nacl,x86_64-pc-nacl,arm-pc-nacl" | 2442 local gold_targets="i686-pc-nacl,x86_64-pc-nacl,arm-pc-nacl,mips32-pc-nacl" |
| 2443 | 2443 |
| 2444 mkdir -p "${objdir}/gold" | 2444 mkdir -p "${objdir}/gold" |
| 2445 spushd "${objdir}/gold" | 2445 spushd "${objdir}/gold" |
| 2446 RunWithLog gold.configure \ | 2446 RunWithLog gold.configure \ |
| 2447 env -i \ | 2447 env -i \ |
| 2448 PATH="/usr/bin:/bin" \ | 2448 PATH="/usr/bin:/bin" \ |
| 2449 CC="${CC}" \ | 2449 CC="${CC}" \ |
| 2450 CXX="${CXX}" \ | 2450 CXX="${CXX}" \ |
| 2451 ac_cv_search_zlibVersion=no \ | 2451 ac_cv_search_zlibVersion=no \ |
| 2452 ac_cv_header_sys_mman_h=no \ | 2452 ac_cv_header_sys_mman_h=no \ |
| (...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3835 #Usage | 3835 #Usage |
| 3836 echo "ERROR: unknown function '$1'." >&2 | 3836 echo "ERROR: unknown function '$1'." >&2 |
| 3837 echo "For help, try:" | 3837 echo "For help, try:" |
| 3838 echo " $0 help" | 3838 echo " $0 help" |
| 3839 exit 1 | 3839 exit 1 |
| 3840 fi | 3840 fi |
| 3841 | 3841 |
| 3842 hg-migrate | 3842 hg-migrate |
| 3843 | 3843 |
| 3844 "$@" | 3844 "$@" |
| OLD | NEW |