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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 x86_64) | 314 x86_64) |
315 targets=x86 | 315 targets=x86 |
316 subzero_targets=X8664 | 316 subzero_targets=X8664 |
317 ;; | 317 ;; |
318 armv7) | 318 armv7) |
319 targets=arm | 319 targets=arm |
320 subzero_targets=ARM32 | 320 subzero_targets=ARM32 |
321 ;; | 321 ;; |
322 universal) | 322 universal) |
323 targets=x86,arm,mips | 323 targets=x86,arm,mips |
324 subzero_targets=X8632,ARM32,MIPS32 | 324 subzero_targets=ARM32,MIPS32,X8632,X8664 |
325 ;; | 325 ;; |
326 esac | 326 esac |
327 | 327 |
328 spushd "${objdir}" | 328 spushd "${objdir}" |
329 # TODO(jvoung): remove ac_cv_func_getrusage=no once newlib has getrusage | 329 # TODO(jvoung): remove ac_cv_func_getrusage=no once newlib has getrusage |
330 # in its headers. Otherwise, configure thinks that we can link in | 330 # in its headers. Otherwise, configure thinks that we can link in |
331 # getrusage (stub is in libnacl), but we can't actually compile code | 331 # getrusage (stub is in libnacl), but we can't actually compile code |
332 # that uses ::getrusage because it's not in headers: | 332 # that uses ::getrusage because it's not in headers: |
333 # https://code.google.com/p/nativeclient/issues/detail?id=3657 | 333 # https://code.google.com/p/nativeclient/issues/detail?id=3657 |
334 # Similar with getrlimit/setrlimit where struct rlimit isn't defined. | 334 # Similar with getrlimit/setrlimit where struct rlimit isn't defined. |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 | 1023 |
1024 if [ "$(type -t $1)" != "function" ]; then | 1024 if [ "$(type -t $1)" != "function" ]; then |
1025 #Usage | 1025 #Usage |
1026 echo "ERROR: unknown function '$1'." >&2 | 1026 echo "ERROR: unknown function '$1'." >&2 |
1027 echo "For help, try:" | 1027 echo "For help, try:" |
1028 echo " $0 help" | 1028 echo " $0 help" |
1029 exit 1 | 1029 exit 1 |
1030 fi | 1030 fi |
1031 | 1031 |
1032 "$@" | 1032 "$@" |
OLD | NEW |