| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 set -o nounset | 7 set -o nounset |
| 8 set -o errexit | 8 set -o errexit |
| 9 | 9 |
| 10 # The script is located in "native_client/tests/spec2k" | 10 # The script is located in "native_client/tests/spec2k" |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 383 |
| 384 #@ | 384 #@ |
| 385 #@ SetupPnaclTranslatorX8632Opt | 385 #@ SetupPnaclTranslatorX8632Opt |
| 386 #@ use pnacl x8632 translator (with lto) | 386 #@ use pnacl x8632 translator (with lto) |
| 387 SetupPnaclTranslatorX8632Opt() { | 387 SetupPnaclTranslatorX8632Opt() { |
| 388 SetupPnaclX8632Common | 388 SetupPnaclX8632Common |
| 389 SUFFIX=pnacl_translator.opt.x8632 | 389 SUFFIX=pnacl_translator.opt.x8632 |
| 390 } | 390 } |
| 391 | 391 |
| 392 #@ | 392 #@ |
| 393 #@ SetupPnaclTranslatorX8632OptSz | |
| 394 #@ use pnacl x8632 Subzero translator (with lto) | |
| 395 SetupPnaclTranslatorX8632OptSz() { | |
| 396 SetupPnaclX8632Common | |
| 397 SUFFIX=pnacl_translator.opt.sz.x8632 | |
| 398 } | |
| 399 | |
| 400 #@ | |
| 401 #@ SetupPnaclTranslatorFastX8632Opt | 393 #@ SetupPnaclTranslatorFastX8632Opt |
| 402 #@ use pnacl x8632 translator fast mode (with lto) | 394 #@ use pnacl x8632 translator fast mode (with lto) |
| 403 SetupPnaclTranslatorFastX8632Opt() { | 395 SetupPnaclTranslatorFastX8632Opt() { |
| 404 SetupPnaclX8632Common | 396 SetupPnaclX8632Common |
| 405 SUFFIX=pnacl_translator_fast.opt.x8632 | 397 SUFFIX=pnacl_translator_fast.opt.x8632 |
| 406 } | 398 } |
| 407 | 399 |
| 408 #@ | 400 #@ |
| 401 #@ SetupPnaclTranslatorFastX8632OptSz |
| 402 #@ use pnacl x8632 Subzero translator (with lto) |
| 403 SetupPnaclTranslatorFastX8632OptSz() { |
| 404 SetupPnaclX8632Common |
| 405 SUFFIX=pnacl_translator_fast.opt.sz.x8632 |
| 406 } |
| 407 |
| 408 #@ |
| 409 #@ SetupPnaclTranslator1ThreadX8632Opt | 409 #@ SetupPnaclTranslator1ThreadX8632Opt |
| 410 #@ use pnacl x8632 translator (with lto). Compile w/ 1 thread. | 410 #@ use pnacl x8632 translator (with lto). Compile w/ 1 thread. |
| 411 SetupPnaclTranslator1ThreadX8632Opt() { | 411 SetupPnaclTranslator1ThreadX8632Opt() { |
| 412 SetupPnaclX8632Common | 412 SetupPnaclX8632Common |
| 413 SUFFIX=pnacl_translator_1thread.opt.x8632 | 413 SUFFIX=pnacl_translator_1thread.opt.x8632 |
| 414 } | 414 } |
| 415 | 415 |
| 416 #@ | 416 #@ |
| 417 #@ SetupPnaclTranslatorFast1ThreadX8632Opt | 417 #@ SetupPnaclTranslatorFast1ThreadX8632Opt |
| 418 #@ use pnacl x8632 translator fast mode (with lto). Compile w/ 1 thread. | 418 #@ use pnacl x8632 translator fast mode (with lto). Compile w/ 1 thread. |
| 419 SetupPnaclTranslatorFast1ThreadX8632Opt() { | 419 SetupPnaclTranslatorFast1ThreadX8632Opt() { |
| 420 SetupPnaclX8632Common | 420 SetupPnaclX8632Common |
| 421 SUFFIX=pnacl_translator_fast_1thread.opt.x8632 | 421 SUFFIX=pnacl_translator_fast_1thread.opt.x8632 |
| 422 } | 422 } |
| 423 | 423 |
| 424 #@ | 424 #@ |
| 425 #@ SetupPnaclTranslatorFast1ThreadX8632OptSz |
| 426 #@ use pnacl x8632 Subzero translator (with lto). Compile w/ 1 thread. |
| 427 SetupPnaclTranslatorFast1ThreadX8632OptSz() { |
| 428 SetupPnaclX8632Common |
| 429 SUFFIX=pnacl_translator_fast_1thread.opt.sz.x8632 |
| 430 } |
| 431 |
| 432 #@ |
| 425 #@ SetupGccArm | 433 #@ SetupGccArm |
| 426 #@ use gcc cross compiler | 434 #@ use gcc cross compiler |
| 427 SetupGccArm() { | 435 SetupGccArm() { |
| 428 PREFIX="${QEMU_TOOL}" | 436 PREFIX="${QEMU_TOOL}" |
| 429 SUFFIX=gcc.arm | 437 SUFFIX=gcc.arm |
| 430 } | 438 } |
| 431 | 439 |
| 432 #@ | 440 #@ |
| 433 #@ SetupGccArmOpt | 441 #@ SetupGccArmOpt |
| 434 #@ use gcc cross compiler | 442 #@ use gcc cross compiler |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 | 1001 |
| 994 [ $# = 0 ] && set -- help # Avoid reference to undefined $1. | 1002 [ $# = 0 ] && set -- help # Avoid reference to undefined $1. |
| 995 | 1003 |
| 996 if [ "$(type -t $1)" != "function" ]; then | 1004 if [ "$(type -t $1)" != "function" ]; then |
| 997 Usage | 1005 Usage |
| 998 echo "ERROR: unknown mode '$1'." >&2 | 1006 echo "ERROR: unknown mode '$1'." >&2 |
| 999 exit 1 | 1007 exit 1 |
| 1000 fi | 1008 fi |
| 1001 | 1009 |
| 1002 "$@" | 1010 "$@" |
| OLD | NEW |