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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 echo "--is-asan-mac-builder: Use older Clang to build ASan on Mac." | 70 echo "--is-asan-mac-builder: Use older Clang to build ASan on Mac." |
71 exit 1 | 71 exit 1 |
72 ;; | 72 ;; |
73 esac | 73 esac |
74 shift | 74 shift |
75 done | 75 done |
76 | 76 |
77 # Are we on a Chrome buildbot running ASan? | 77 # Are we on a Chrome buildbot running ASan? |
78 function on_asan_mac_host { | 78 function on_asan_mac_host { |
79 HOST="$(uname -n)" | 79 HOST="$(uname -n)" |
| 80 # Chrome Mac ASan Builder. |
80 if [[ "${HOST}" == "vm633-m1.golo.chromium.org" ]]; then | 81 if [[ "${HOST}" == "vm633-m1.golo.chromium.org" ]]; then |
81 return 0 | 82 return 0 |
82 fi | 83 fi |
| 84 # Chrome Mac ASan LKGR. |
| 85 if [[ "${HOST}" == "mini11-a1.golo.chromium.org" ]]; then |
| 86 return 0 |
| 87 fi |
| 88 # mac_asan trybots. |
83 for num in $(seq 600 655) | 89 for num in $(seq 600 655) |
84 do | 90 do |
85 if [[ "${HOST}" == "vm${num}-m4.golo.chromium.org" ]]; then | 91 if [[ "${HOST}" == "vm${num}-m4.golo.chromium.org" ]]; then |
86 return 0 | 92 return 0 |
87 fi | 93 fi |
88 done | 94 done |
89 return 1 | 95 return 1 |
90 } | 96 } |
91 | 97 |
92 # Use older Clang for ASan Mac builds. See http://crbug.com/170629. | 98 # Use older Clang for ASan Mac builds. See http://crbug.com/170629. |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 # Run a few tests. | 367 # Run a few tests. |
362 PLUGIN_SRC_DIR="${THIS_DIR}/../plugins" | 368 PLUGIN_SRC_DIR="${THIS_DIR}/../plugins" |
363 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" | 369 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" |
364 cd "${LLVM_BUILD_DIR}" | 370 cd "${LLVM_BUILD_DIR}" |
365 make check-all | 371 make check-all |
366 cd - | 372 cd - |
367 fi | 373 fi |
368 | 374 |
369 # After everything is done, log success for this revision. | 375 # After everything is done, log success for this revision. |
370 echo "${CLANG_REVISION}" > "${STAMP_FILE}" | 376 echo "${CLANG_REVISION}" > "${STAMP_FILE}" |
OLD | NEW |