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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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="$(uname -n)" | 93 HOST="$(uname -n)" |
94 # Chrome Mac ASan Builder. | 94 # Chrome Mac ASan Builder. |
95 if [[ "${HOST}" == "vm633-m1.golo.chromium.org" ]]; then | 95 if [[ "${HOST}" == "vm633-m1.golo.chromium.org" ]]; then |
96 return 0 | 96 return 0 |
97 fi | 97 fi |
98 # Chrome Mac ASan LKGR. | 98 # Chrome Mac ASan LKGR. |
99 if [[ "${HOST}" == "mini11-a1.golo.chromium.org" ]]; then | 99 if [[ "${HOST}" == "mini11-a1.chrome.corp.google.com" ]]; then |
100 return 0 | 100 return 0 |
101 fi | 101 fi |
102 # mac_asan trybots. | 102 # mac_asan trybots. |
103 for num in $(jot - 600 655) | 103 for num in $(jot - 600 655) |
104 do | 104 do |
105 if [[ "${HOST}" == "vm${num}-m4.golo.chromium.org" ]]; then | 105 if [[ "${HOST}" == "vm${num}-m4.golo.chromium.org" ]]; then |
106 return 0 | 106 return 0 |
107 fi | 107 fi |
108 done | 108 done |
109 return 1 | 109 return 1 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 # Run a few tests. | 390 # Run a few tests. |
391 PLUGIN_SRC_DIR="${THIS_DIR}/../plugins" | 391 PLUGIN_SRC_DIR="${THIS_DIR}/../plugins" |
392 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" | 392 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" |
393 cd "${LLVM_BUILD_DIR}" | 393 cd "${LLVM_BUILD_DIR}" |
394 make check-all | 394 make check-all |
395 cd - | 395 cd - |
396 fi | 396 fi |
397 | 397 |
398 # After everything is done, log success for this revision. | 398 # After everything is done, log success for this revision. |
399 echo "${CLANG_REVISION}" > "${STAMP_FILE}" | 399 echo "${CLANG_REVISION}" > "${STAMP_FILE}" |
OLD | NEW |