| 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 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 ######################################################################### | 1452 ######################################################################### |
| 1453 ######################################################################### | 1453 ######################################################################### |
| 1454 | 1454 |
| 1455 libgcc_eh-newlib() { | 1455 libgcc_eh-newlib() { |
| 1456 StepBanner "LIBGCC_EH (from GCC 4.6) -- NEWLIB" | 1456 StepBanner "LIBGCC_EH (from GCC 4.6) -- NEWLIB" |
| 1457 | 1457 |
| 1458 # Build libgcc_eh.a using Newlib, and libgcc_s.so using GlibC. | 1458 # Build libgcc_eh.a using Newlib, and libgcc_s.so using GlibC. |
| 1459 # This is a temporary situation. Eventually, libgcc_eh won't depend | 1459 # This is a temporary situation. Eventually, libgcc_eh won't depend |
| 1460 # on LibC, and it will be built once for each architecture in a neutral way. | 1460 # on LibC, and it will be built once for each architecture in a neutral way. |
| 1461 libgcc_eh arm newlib | 1461 libgcc_eh arm newlib |
| 1462 libgcc_eh mips32 newlib |
| 1462 libgcc_eh x86-32 newlib | 1463 libgcc_eh x86-32 newlib |
| 1463 libgcc_eh x86-64 newlib | 1464 libgcc_eh x86-64 newlib |
| 1464 } | 1465 } |
| 1465 | 1466 |
| 1466 libgcc_eh-glibc() { | 1467 libgcc_eh-glibc() { |
| 1467 StepBanner "LIBGCC_EH (from GCC 4.6) -- GLIBC" | 1468 StepBanner "LIBGCC_EH (from GCC 4.6) -- GLIBC" |
| 1468 | 1469 |
| 1469 # ARM GlibC can't be built because libc.so is missing. | 1470 # ARM GlibC can't be built because libc.so is missing. |
| 1470 libgcc_eh x86-32 glibc | 1471 libgcc_eh x86-32 glibc |
| 1471 libgcc_eh x86-64 glibc | 1472 libgcc_eh x86-64 glibc |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1586 | 1587 |
| 1587 ######################################################################### | 1588 ######################################################################### |
| 1588 ######################################################################### | 1589 ######################################################################### |
| 1589 # < COMPILER-RT > | 1590 # < COMPILER-RT > |
| 1590 ######################################################################### | 1591 ######################################################################### |
| 1591 ######################################################################### | 1592 ######################################################################### |
| 1592 | 1593 |
| 1593 compiler-rt-all() { | 1594 compiler-rt-all() { |
| 1594 StepBanner "COMPILER-RT (LIBGCC)" | 1595 StepBanner "COMPILER-RT (LIBGCC)" |
| 1595 compiler-rt arm | 1596 compiler-rt arm |
| 1597 compiler-rt mips32 |
| 1596 compiler-rt x86-32 | 1598 compiler-rt x86-32 |
| 1597 compiler-rt x86-64 | 1599 compiler-rt x86-64 |
| 1598 } | 1600 } |
| 1599 | 1601 |
| 1600 | 1602 |
| 1601 #+ compiler-rt - build/install llvm's replacement for libgcc.a | 1603 #+ compiler-rt - build/install llvm's replacement for libgcc.a |
| 1602 compiler-rt() { | 1604 compiler-rt() { |
| 1603 local arch=$1 | 1605 local arch=$1 |
| 1604 local src="${TC_SRC_COMPILER_RT}/lib" | 1606 local src="${TC_SRC_COMPILER_RT}/lib" |
| 1605 local objdir="${TC_BUILD_COMPILER_RT}-${arch}" | 1607 local objdir="${TC_BUILD_COMPILER_RT}-${arch}" |
| (...skipping 2291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3897 #Usage | 3899 #Usage |
| 3898 echo "ERROR: unknown function '$1'." >&2 | 3900 echo "ERROR: unknown function '$1'." >&2 |
| 3899 echo "For help, try:" | 3901 echo "For help, try:" |
| 3900 echo " $0 help" | 3902 echo " $0 help" |
| 3901 exit 1 | 3903 exit 1 |
| 3902 fi | 3904 fi |
| 3903 | 3905 |
| 3904 hg-migrate | 3906 hg-migrate |
| 3905 | 3907 |
| 3906 "$@" | 3908 "$@" |
| OLD | NEW |