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

Unified Diff: tools/clang/scripts/update.sh

Issue 268363020: clang: Instead of having update.sh clobber out/, add a define with the current revision. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: onemore Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/update.sh
diff --git a/tools/clang/scripts/update.sh b/tools/clang/scripts/update.sh
index fe16d1261d5dd3654cc83313fe1b969bec4f0027..ee7d06a8397ba18de66b5ea7dd49edc896d53807 100755
--- a/tools/clang/scripts/update.sh
+++ b/tools/clang/scripts/update.sh
@@ -78,6 +78,10 @@ while [[ $# > 0 ]]; do
--force-local-build)
force_local_build=yes
;;
+ --print-revision)
+ echo $CLANG_REVISION
+ exit 0
+ ;;
--run-tests)
run_tests=yes
;;
@@ -113,6 +117,7 @@ while [[ $# > 0 ]]; do
echo "--force-local-build: Don't try to download prebuilt binaries."
echo "--if-needed: Download clang only if the script thinks it is needed."
echo "--run-tests: Run tests after building. Only for local builds."
+ echo "--print-revision: Print current clang revision and exit."
echo "--without-android: Don't build ASan Android runtime library."
echo "--with-chrome-tools: Select which chrome tools to build." \
"Defaults to plugins."
@@ -136,7 +141,6 @@ done
if [[ -f "${LLVM_BUILD_DIR}/autoinstall_stamp" ]]; then
echo Removing autoinstalled clang and clobbering
rm -rf "${LLVM_BUILD_DIR}"
- rm -rf "${THIS_DIR}/../../../out"
fi
if [[ -n "$if_needed" ]]; then
@@ -171,18 +175,6 @@ fi
rm -f "${STAMP_FILE}"
-# Clobber all output files. PCH files only work with the compiler that created
-# them, so we need clobber the output files to make sure they are rebuilt
-# using the new compiler.
-echo "Clobbering build files"
-MAKE_DIR="${THIS_DIR}/../../../out"
-XCODEBUILD_DIR="${THIS_DIR}/../../../xcodebuild"
-for DIR in "${XCODEBUILD_DIR}" "${MAKE_DIR}"; do
- if [[ -d "${DIR}" ]]; then
- rm -rf "${DIR}"
- fi
-done
-
if [[ -z "$force_local_build" ]]; then
# Check if there's a prebuilt binary and if so just fetch that. That's faster,
# and goma relies on having matching binary hashes on client and server too.
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698