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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 return 0 | 110 return 0 |
111 fi | 111 fi |
112 # 10.8 Chrome Mac ASan Builder. | 112 # 10.8 Chrome Mac ASan Builder. |
113 if [[ "${HOST}" == "vm672-m1" ]]; then | 113 if [[ "${HOST}" == "vm672-m1" ]]; then |
114 return 0 | 114 return 0 |
115 fi | 115 fi |
116 # Chrome Mac ASan LKGR. | 116 # Chrome Mac ASan LKGR. |
117 if [[ "${HOST}" == "mini11-a1" ]]; then | 117 if [[ "${HOST}" == "mini11-a1" ]]; then |
118 return 0 | 118 return 0 |
119 fi | 119 fi |
120 # mac_asan trybots. | 120 # mac_asan trybots. These share machines with the mac_layout bots, so only |
121 for num in $(jot - 600 655) | 121 # pin clang if the slave is used for an _asan build, not for a layout build. |
| 122 if [[ "${PWD}" != *asan* ]]; then |
| 123 return 1 |
| 124 fi |
| 125 for num in {600..655} |
122 do | 126 do |
123 if [[ "${HOST}" == "vm${num}-m4" ]]; then | 127 if [[ "${HOST}" == "vm${num}-m4" ]]; then |
124 return 0 | 128 return 0 |
125 fi | 129 fi |
126 done | 130 done |
127 return 1 | 131 return 1 |
128 } | 132 } |
129 | 133 |
130 # Use older Clang for ASan Mac builds. See http://crbug.com/170629. | 134 # Use older Clang for ASan Mac builds. See http://crbug.com/170629. |
131 if [[ -n "${is_asan_mac_builder_hackfix}" ]] || on_asan_mac_host; then | 135 if [[ -n "${is_asan_mac_builder_hackfix}" ]] || on_asan_mac_host; then |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 # Run a few tests. | 411 # Run a few tests. |
408 PLUGIN_SRC_DIR="${THIS_DIR}/../plugins" | 412 PLUGIN_SRC_DIR="${THIS_DIR}/../plugins" |
409 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" | 413 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" |
410 cd "${LLVM_BUILD_DIR}" | 414 cd "${LLVM_BUILD_DIR}" |
411 make check-all | 415 make check-all |
412 cd - | 416 cd - |
413 fi | 417 fi |
414 | 418 |
415 # After everything is done, log success for this revision. | 419 # After everything is done, log success for this revision. |
416 echo "${CLANG_REVISION}" > "${STAMP_FILE}" | 420 echo "${CLANG_REVISION}" > "${STAMP_FILE}" |
OLD | NEW |