| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 166 } |
| 167 | 167 |
| 168 #@ | 168 #@ |
| 169 #@ SetupLlvmX8664Opt | 169 #@ SetupLlvmX8664Opt |
| 170 #@ use system compiler for x86-64 with optimization | 170 #@ use system compiler for x86-64 with optimization |
| 171 SetupLlvmX8664Opt() { | 171 SetupLlvmX8664Opt() { |
| 172 PREFIX= | 172 PREFIX= |
| 173 SUFFIX=llvm.opt.x8664 | 173 SUFFIX=llvm.opt.x8664 |
| 174 } | 174 } |
| 175 | 175 |
| 176 |
| 177 #@ |
| 178 #@ SetupLlvmX32 |
| 179 #@ use system compiler for x32 |
| 180 SetupLlvmX32() { |
| 181 PREFIX= |
| 182 SUFFIX=llvm.x32 |
| 183 } |
| 184 |
| 185 #@ |
| 186 #@ SetupLlvmX8664Opt |
| 187 #@ use system compiler for x86-64 with optimization |
| 188 SetupLlvmX32Opt() { |
| 189 PREFIX= |
| 190 SUFFIX=llvm.opt.x32 |
| 191 } |
| 192 |
| 176 #@ | 193 #@ |
| 177 #@ SetupLlvmArm | 194 #@ SetupLlvmArm |
| 178 #@ use system compiler for ARM | 195 #@ use system compiler for ARM |
| 179 SetupLlvmArm() { | 196 SetupLlvmArm() { |
| 180 PREFIX= | 197 PREFIX= |
| 181 SUFFIX=llvm.hw.arm | 198 SUFFIX=llvm.hw.arm |
| 182 } | 199 } |
| 183 | 200 |
| 184 #@ | 201 #@ |
| 185 #@ SetupLlvmArmOpt | 202 #@ SetupLlvmArmOpt |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 SetupGccArm() { | 452 SetupGccArm() { |
| 436 PREFIX="${QEMU_TOOL}" | 453 PREFIX="${QEMU_TOOL}" |
| 437 SUFFIX=gcc.arm | 454 SUFFIX=gcc.arm |
| 438 } | 455 } |
| 439 | 456 |
| 440 #@ | 457 #@ |
| 441 #@ SetupGccArmOpt | 458 #@ SetupGccArmOpt |
| 442 #@ use gcc cross compiler | 459 #@ use gcc cross compiler |
| 443 SetupGccArmOpt() { | 460 SetupGccArmOpt() { |
| 444 PREFIX="${QEMU_TOOL}" | 461 PREFIX="${QEMU_TOOL}" |
| 445 SUFFIX=gcc.opt.arm | 462 SUFFIX=gcc.opt.arm32 |
| 446 } | 463 } |
| 447 | 464 |
| 448 SetupPnaclArmCommon() { | 465 SetupPnaclArmCommon() { |
| 449 SetupSelLdr arm "${QEMU_TOOL}" "-Q" | 466 SetupSelLdr arm "${QEMU_TOOL}" "-Q" |
| 450 } | 467 } |
| 451 | 468 |
| 452 #@ | 469 #@ |
| 453 #@ SetupPnaclArmOpt | 470 #@ SetupPnaclArmOpt |
| 454 #@ use pnacl arm compiler (with lto) -- run with QEMU | 471 #@ use pnacl arm compiler (with lto) -- run with QEMU |
| 455 SetupPnaclArmOpt() { | 472 SetupPnaclArmOpt() { |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 | 1018 |
| 1002 [ $# = 0 ] && set -- help # Avoid reference to undefined $1. | 1019 [ $# = 0 ] && set -- help # Avoid reference to undefined $1. |
| 1003 | 1020 |
| 1004 if [ "$(type -t $1)" != "function" ]; then | 1021 if [ "$(type -t $1)" != "function" ]; then |
| 1005 Usage | 1022 Usage |
| 1006 echo "ERROR: unknown mode '$1'." >&2 | 1023 echo "ERROR: unknown mode '$1'." >&2 |
| 1007 exit 1 | 1024 exit 1 |
| 1008 fi | 1025 fi |
| 1009 | 1026 |
| 1010 "$@" | 1027 "$@" |
| OLD | NEW |