OLD | NEW |
1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 # http://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. |
11 CLANG_REVISION=145240 | 11 CLANG_REVISION=145240 |
12 | 12 |
13 THIS_DIR="$(dirname "${0}")" | 13 THIS_DIR="$(dirname "${0}")" |
14 LLVM_DIR="${THIS_DIR}/../../../third_party/llvm" | 14 LLVM_DIR="${THIS_DIR}/../../../third_party/llvm" |
15 LLVM_BUILD_DIR="${LLVM_DIR}/../llvm-build" | 15 LLVM_BUILD_DIR="${LLVM_DIR}/../llvm-build" |
16 CLANG_DIR="${LLVM_DIR}/tools/clang" | 16 CLANG_DIR="${LLVM_DIR}/tools/clang" |
17 STAMP_FILE="${LLVM_BUILD_DIR}/cr_build_revision" | 17 STAMP_FILE="${LLVM_BUILD_DIR}/cr_build_revision" |
18 | 18 |
19 # ${A:-a} returns $A if it's set, a else. | 19 # ${A:-a} returns $A if it's set, a else. |
20 LLVM_REPO_URL=${LLVM_URL:-http://llvm.org/svn/llvm-project} | 20 LLVM_REPO_URL=${LLVM_URL:-https://llvm.org/svn/llvm-project} |
21 | 21 |
22 # Die if any command dies. | 22 # Die if any command dies. |
23 set -e | 23 set -e |
24 | 24 |
25 OS="$(uname -s)" | 25 OS="$(uname -s)" |
26 | 26 |
27 # Parse command line options. | 27 # Parse command line options. |
28 force_local_build= | 28 force_local_build= |
29 mac_only= | 29 mac_only= |
30 run_tests= | 30 run_tests= |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 if [[ -n "$run_tests" ]]; then | 203 if [[ -n "$run_tests" ]]; then |
204 # Run a few tests. | 204 # Run a few tests. |
205 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" | 205 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" |
206 cd "${LLVM_BUILD_DIR}" | 206 cd "${LLVM_BUILD_DIR}" |
207 make check-all | 207 make check-all |
208 cd - | 208 cd - |
209 fi | 209 fi |
210 | 210 |
211 # After everything is done, log success for this revision. | 211 # After everything is done, log success for this revision. |
212 echo "${CLANG_REVISION}" > "${STAMP_FILE}" | 212 echo "${CLANG_REVISION}" > "${STAMP_FILE}" |
OLD | NEW |