Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: tools/clang/scripts/update.sh

Issue 11418195: Clean up a few -faddress-sanitizer stragglers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/pyautolib/asan_stub.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 echo "${CLANG_REVISION}" > "${STAMP_FILE}" 197 echo "${CLANG_REVISION}" > "${STAMP_FILE}"
198 rm -rf "${CDS_OUT_DIR}" 198 rm -rf "${CDS_OUT_DIR}"
199 exit 0 199 exit 0
200 else 200 else
201 echo Did not find prebuilt clang at r"${CLANG_REVISION}", building 201 echo Did not find prebuilt clang at r"${CLANG_REVISION}", building
202 fi 202 fi
203 fi 203 fi
204 204
205 if [[ -n "${with_android}" ]] && ! [[ -d "${ANDROID_NDK_DIR}" ]]; then 205 if [[ -n "${with_android}" ]] && ! [[ -d "${ANDROID_NDK_DIR}" ]]; then
206 echo "Android NDK not found at ${ANDROID_NDK_DIR}" 206 echo "Android NDK not found at ${ANDROID_NDK_DIR}"
207 echo "The Android NDK is needed to build a Clang whose -faddress-sanitizer" 207 echo "The Android NDK is needed to build a Clang whose -fsanitize=address"
208 echo "works on Android. See " 208 echo "works on Android. See "
209 echo "http://code.google.com/p/chromium/wiki/AndroidBuildInstructions for how" 209 echo "http://code.google.com/p/chromium/wiki/AndroidBuildInstructions for how"
210 echo "to install the NDK, or pass --without-android." 210 echo "to install the NDK, or pass --without-android."
211 exit 1 211 exit 1
212 fi 212 fi
213 213
214 echo Getting LLVM r"${CLANG_REVISION}" in "${LLVM_DIR}" 214 echo Getting LLVM r"${CLANG_REVISION}" in "${LLVM_DIR}"
215 if ! svn co --force "${LLVM_REPO_URL}/llvm/trunk@${CLANG_REVISION}" \ 215 if ! svn co --force "${LLVM_REPO_URL}/llvm/trunk@${CLANG_REVISION}" \
216 "${LLVM_DIR}"; then 216 "${LLVM_DIR}"; then
217 echo Checkout failed, retrying 217 echo Checkout failed, retrying
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 if [[ -n "$run_tests" ]]; then 319 if [[ -n "$run_tests" ]]; then
320 # Run a few tests. 320 # Run a few tests.
321 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" 321 "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts"
322 cd "${LLVM_BUILD_DIR}" 322 cd "${LLVM_BUILD_DIR}"
323 make check-all 323 make check-all
324 cd - 324 cd -
325 fi 325 fi
326 326
327 # After everything is done, log success for this revision. 327 # After everything is done, log success for this revision.
328 echo "${CLANG_REVISION}" > "${STAMP_FILE}" 328 echo "${CLANG_REVISION}" > "${STAMP_FILE}"
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/asan_stub.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698