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

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

Issue 8429020: clang: Let `gclient sync` autoupdate clang on linux if clang has been downloaded before. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 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 | « no previous file | 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 1564755a17d81a329da839f5ba21c4b062b66fec..c3a407330898df2031b77430e05c1ecf2fc2d110 100755
--- a/tools/clang/scripts/update.sh
+++ b/tools/clang/scripts/update.sh
@@ -42,7 +42,7 @@ while [[ $# > 0 ]]; do
--help)
echo "usage: $0 [--force-local-build] [--mac-only] [--run-tests] "
echo "--force-local-build: Don't try to download prebuilt binaries."
- echo "--mac-only: Do nothing on non-Mac systems."
+ echo "--mac-only: Do initial download only on Mac systems."
echo "--run-tests: Run tests after building. Only for local builds."
exit 1
;;
@@ -50,7 +50,12 @@ while [[ $# > 0 ]]; do
shift
done
-if [[ -n "$mac_only" ]] && [[ "${OS}" != "Darwin" ]]; then
+# --mac-only prevents the initial download on non-mac systems, but if clang has
+# already been downloaded in the past, this script keeps it up to date even if
+# --mac-only is passed in and the system isn't a mac. People who don't like this
+# can just delete their third_party/llvm-build directory.
+if [[ -n "$mac_only" ]] && [[ "${OS}" != "Darwin" ]] &&
+ ! [[ -d "${LLVM_BUILD_DIR}" ]]; then
exit 0
fi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698