summaryrefslogtreecommitdiffstats
path: root/tools/clang
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-01 16:48:56 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-01 16:48:56 +0000
commit89f1ecc6808585f9b0b02c712d5fc3c1454db7dc (patch)
treeb88d239e469632449d2f0b273bf784f4e9d5d4fb /tools/clang
parentd4a9fb56741222b9c674fcb608ccbf035289cd33 (diff)
downloadchromium_src-89f1ecc6808585f9b0b02c712d5fc3c1454db7dc.zip
chromium_src-89f1ecc6808585f9b0b02c712d5fc3c1454db7dc.tar.gz
chromium_src-89f1ecc6808585f9b0b02c712d5fc3c1454db7dc.tar.bz2
clang: Let `gclient sync` autoupdate clang on linux if clang has been downloaded before.
This way, clang is autoupdated for people who use clang on linux, but people and bots who don't use it are still not affected BUG=none TEST=linux clang users stop complaining to me about things that were fixed long ago. Review URL: http://codereview.chromium.org/8429020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/clang')
-rwxr-xr-xtools/clang/scripts/update.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/clang/scripts/update.sh b/tools/clang/scripts/update.sh
index 1564755..c3a4073 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