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

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

Issue 383913004: Switch Linux back to using gcc by default. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 months 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
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 if [[ "${OS}" == "Darwin" ]]; then 141 if [[ "${OS}" == "Darwin" ]]; then
142 # clang is used on Mac. 142 # clang is used on Mac.
143 true 143 true
144 elif [[ "$GYP_DEFINES" =~ .*(clang|tsan|asan|lsan|msan)=1.* ]]; then 144 elif [[ "$GYP_DEFINES" =~ .*(clang|tsan|asan|lsan|msan)=1.* ]]; then
145 # clang requested via $GYP_DEFINES. 145 # clang requested via $GYP_DEFINES.
146 true 146 true
147 elif [[ -d "${LLVM_BUILD_DIR}" ]]; then 147 elif [[ -d "${LLVM_BUILD_DIR}" ]]; then
148 # clang previously downloaded, remove third_party/llvm-build to prevent 148 # clang previously downloaded, remove third_party/llvm-build to prevent
149 # updating. 149 # updating.
150 true 150 true
151 elif [[ "${OS}" == "Linux" ]]; then
152 # Temporarily use clang on linux. Leave a stamp file behind, so that
153 # this script can remove clang again on machines where it was autoinstalled.
154 mkdir -p "${LLVM_BUILD_DIR}"
155 touch "${LLVM_BUILD_DIR}/autoinstall_stamp"
156 true
157 else 151 else
158 # clang wasn't needed, not doing anything. 152 # clang wasn't needed, not doing anything.
159 exit 0 153 exit 0
160 fi 154 fi
161 fi 155 fi
162 156
163 157
164 # Check if there's anything to be done, exit early if not. 158 # Check if there's anything to be done, exit early if not.
165 if [[ -f "${STAMP_FILE}" ]]; then 159 if [[ -f "${STAMP_FILE}" ]]; then
166 PREVIOUSLY_BUILT_REVISON=$(cat "${STAMP_FILE}") 160 PREVIOUSLY_BUILT_REVISON=$(cat "${STAMP_FILE}")
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 "${TOOL_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts" 454 "${TOOL_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts"
461 fi 455 fi
462 done 456 done
463 pushd "${LLVM_BUILD_DIR}" 457 pushd "${LLVM_BUILD_DIR}"
464 ${MAKE} check-all 458 ${MAKE} check-all
465 popd 459 popd
466 fi 460 fi
467 461
468 # After everything is done, log success for this revision. 462 # After everything is done, log success for this revision.
469 echo "${CLANG_AND_PLUGINS_REVISION}" > "${STAMP_FILE}" 463 echo "${CLANG_AND_PLUGINS_REVISION}" > "${STAMP_FILE}"
OLDNEW
« no previous file with comments | « chrome/installer/linux/rpm/expected_deps_x86_64 ('k') | tools/perf_expectations/perf_expectations.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698