| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 287 |
| 288 #@ | 288 #@ |
| 289 #@ SetupPnaclX8664Opt | 289 #@ SetupPnaclX8664Opt |
| 290 #@ use pnacl x86-64 compiler (with lto) | 290 #@ use pnacl x86-64 compiler (with lto) |
| 291 SetupPnaclX8664Opt() { | 291 SetupPnaclX8664Opt() { |
| 292 SetupPnaclX8664Common | 292 SetupPnaclX8664Common |
| 293 SUFFIX=pnacl.opt.x8664 | 293 SUFFIX=pnacl.opt.x8664 |
| 294 } | 294 } |
| 295 | 295 |
| 296 #@ | 296 #@ |
| 297 #@ SetupPnaclX8664OptSz |
| 298 #@ use pnacl x86-64 compiler (with lto) plus Subzero |
| 299 SetupPnaclX8664OptSz() { |
| 300 SetupPnaclX8664Common |
| 301 SUFFIX=pnacl.opt.sz.x8664 |
| 302 } |
| 303 |
| 304 #@ |
| 297 #@ SetupPnaclX8664ZBSOpt | 305 #@ SetupPnaclX8664ZBSOpt |
| 298 #@ use pnacl x86-64 compiler (with lto) | 306 #@ use pnacl x86-64 compiler (with lto) |
| 299 #@ use x86-64 zero-based sandbox | 307 #@ use x86-64 zero-based sandbox |
| 300 SetupPnaclX8664ZBSOpt() { | 308 SetupPnaclX8664ZBSOpt() { |
| 301 SetupSelLdr x86-64 "" "-c" | 309 SetupSelLdr x86-64 "" "-c" |
| 302 # TODO(arbenson): Give this a different suffix to differentitate | 310 # TODO(arbenson): Give this a different suffix to differentitate |
| 303 # from the existing x86-64 build, and make the corresponding | 311 # from the existing x86-64 build, and make the corresponding |
| 304 # changes to the build process. | 312 # changes to the build process. |
| 305 SUFFIX=pnacl.opt.x8664 | 313 SUFFIX=pnacl.opt.x8664 |
| 306 } | 314 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 323 | 331 |
| 324 #@ | 332 #@ |
| 325 #@ SetupPnaclTranslatorFastX8664Opt | 333 #@ SetupPnaclTranslatorFastX8664Opt |
| 326 #@ use pnacl x8664 translator fast mode (with lto) | 334 #@ use pnacl x8664 translator fast mode (with lto) |
| 327 SetupPnaclTranslatorFastX8664Opt() { | 335 SetupPnaclTranslatorFastX8664Opt() { |
| 328 SetupPnaclX8664Common | 336 SetupPnaclX8664Common |
| 329 SUFFIX=pnacl_translator_fast.opt.x8664 | 337 SUFFIX=pnacl_translator_fast.opt.x8664 |
| 330 } | 338 } |
| 331 | 339 |
| 332 #@ | 340 #@ |
| 341 #@ SetupPnaclTranslatorFastX8664OptSz |
| 342 #@ use pnacl x8664 Subzero translator (with lto) |
| 343 SetupPnaclTranslatorFastX8664OptSz() { |
| 344 SetupPnaclX8664Common |
| 345 SUFFIX=pnacl_translator_fast.opt.sz.x8664 |
| 346 } |
| 347 |
| 348 #@ |
| 333 #@ SetupPnaclTranslator1ThreadX8664Opt | 349 #@ SetupPnaclTranslator1ThreadX8664Opt |
| 334 #@ use pnacl x8664 translator (with lto). Compile w/ 1 thread. | 350 #@ use pnacl x8664 translator (with lto). Compile w/ 1 thread. |
| 335 SetupPnaclTranslator1ThreadX8664Opt() { | 351 SetupPnaclTranslator1ThreadX8664Opt() { |
| 336 SetupPnaclX8664Common | 352 SetupPnaclX8664Common |
| 337 SUFFIX=pnacl_translator_1thread.opt.x8664 | 353 SUFFIX=pnacl_translator_1thread.opt.x8664 |
| 338 } | 354 } |
| 339 | 355 |
| 340 #@ | 356 #@ |
| 341 #@ SetupPnaclTranslatorFast1ThreadX8664Opt | 357 #@ SetupPnaclTranslatorFast1ThreadX8664Opt |
| 342 #@ use pnacl x8664 translator fast mode (with lto). Compile w/ 1 thread. | 358 #@ use pnacl x8664 translator fast mode (with lto). Compile w/ 1 thread. |
| 343 SetupPnaclTranslatorFast1ThreadX8664Opt() { | 359 SetupPnaclTranslatorFast1ThreadX8664Opt() { |
| 344 SetupPnaclX8664Common | 360 SetupPnaclX8664Common |
| 345 SUFFIX=pnacl_translator_fast_1thread.opt.x8664 | 361 SUFFIX=pnacl_translator_fast_1thread.opt.x8664 |
| 346 } | 362 } |
| 347 | 363 |
| 364 #@ |
| 365 #@ SetupPnaclTranslatorFast1ThreadX8664OptSz |
| 366 #@ use pnacl x8664 Subzero translator (with lto). Compile w/ 1 thread. |
| 367 SetupPnaclTranslatorFast1ThreadX8664OptSz() { |
| 368 SetupPnaclX8664Common |
| 369 SUFFIX=pnacl_translator_fast_1thread.opt.sz.x8664 |
| 370 } |
| 371 |
| 348 SetupPnaclX8632Common() { | 372 SetupPnaclX8632Common() { |
| 349 SetupSelLdr x86-32 | 373 SetupSelLdr x86-32 |
| 350 } | 374 } |
| 351 | 375 |
| 352 #@ | 376 #@ |
| 353 #@ SetupPnaclX8632 | 377 #@ SetupPnaclX8632 |
| 354 #@ use pnacl x86-32 compiler (no lto) | 378 #@ use pnacl x86-32 compiler (no lto) |
| 355 SetupPnaclX8632() { | 379 SetupPnaclX8632() { |
| 356 SetupPnaclX8632Common | 380 SetupPnaclX8632Common |
| 357 SUFFIX=pnacl.x8632 | 381 SUFFIX=pnacl.x8632 |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 | 1025 |
| 1002 [ $# = 0 ] && set -- help # Avoid reference to undefined $1. | 1026 [ $# = 0 ] && set -- help # Avoid reference to undefined $1. |
| 1003 | 1027 |
| 1004 if [ "$(type -t $1)" != "function" ]; then | 1028 if [ "$(type -t $1)" != "function" ]; then |
| 1005 Usage | 1029 Usage |
| 1006 echo "ERROR: unknown mode '$1'." >&2 | 1030 echo "ERROR: unknown mode '$1'." >&2 |
| 1007 exit 1 | 1031 exit 1 |
| 1008 fi | 1032 fi |
| 1009 | 1033 |
| 1010 "$@" | 1034 "$@" |
| OLD | NEW |