| OLD | NEW |
| 1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium 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 # This script will check out llvm and clang into third_party/llvm and build it. | 6 # This script will check out llvm and clang into third_party/llvm and build it. |
| 7 | 7 |
| 8 # Do NOT CHANGE this if you don't know what you're doing -- see | 8 # Do NOT CHANGE this if you don't know what you're doing -- see |
| 9 # https://code.google.com/p/chromium/wiki/UpdatingClang | 9 # https://code.google.com/p/chromium/wiki/UpdatingClang |
| 10 # Reverting problematic clang rolls is safe, though. | 10 # Reverting problematic clang rolls is safe, though. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 esac | 84 esac |
| 85 shift | 85 shift |
| 86 done | 86 done |
| 87 | 87 |
| 88 # Are we on a Chrome buildbot running ASan? | 88 # Are we on a Chrome buildbot running ASan? |
| 89 function on_asan_mac_host { | 89 function on_asan_mac_host { |
| 90 if [[ "${OS}" != "Darwin" ]]; then | 90 if [[ "${OS}" != "Darwin" ]]; then |
| 91 return 1 | 91 return 1 |
| 92 fi | 92 fi |
| 93 HOST="$(hostname -s)" | 93 HOST="$(hostname -s)" |
| 94 # Old (10.6) Chrome Mac ASan Builder. Kept here till we fully migrate to 10.8 | 94 # Chrome Mac ASan Builder. |
| 95 if [[ "${HOST}" == "vm633-m1" ]]; then | 95 if [[ "${HOST}" == "vm633-m1" ]]; then |
| 96 return 0 | 96 return 0 |
| 97 fi | 97 fi |
| 98 # 10.8 Chrome Mac ASan Builder. | |
| 99 if [[ "${HOST}" == "vm672-m1" ]]; then | |
| 100 return 0 | |
| 101 fi | |
| 102 # Chrome Mac ASan LKGR. | 98 # Chrome Mac ASan LKGR. |
| 103 if [[ "${HOST}" == "mini11-a1" ]]; then | 99 if [[ "${HOST}" == "mini11-a1" ]]; then |
| 104 return 0 | 100 return 0 |
| 105 fi | 101 fi |
| 106 # mac_asan trybots. | 102 # mac_asan trybots. |
| 107 for num in $(jot - 600 655) | 103 for num in $(jot - 600 655) |
| 108 do | 104 do |
| 109 if [[ "${HOST}" == "vm${num}-m4" ]]; then | 105 if [[ "${HOST}" == "vm${num}-m4" ]]; then |
| 110 return 0 | 106 return 0 |
| 111 fi | 107 fi |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 # Run a few tests. | 390 # Run a few tests. |
| 395 PLUGIN_SRC_DIR="${THIS_DIR}/../plugins" | 391 PLUGIN_SRC_DIR="${THIS_DIR}/../plugins" |
| 396 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" | 392 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" |
| 397 cd "${LLVM_BUILD_DIR}" | 393 cd "${LLVM_BUILD_DIR}" |
| 398 make check-all | 394 make check-all |
| 399 cd - | 395 cd - |
| 400 fi | 396 fi |
| 401 | 397 |
| 402 # After everything is done, log success for this revision. | 398 # After everything is done, log success for this revision. |
| 403 echo "${CLANG_REVISION}" > "${STAMP_FILE}" | 399 echo "${CLANG_REVISION}" > "${STAMP_FILE}" |
| OLD | NEW |