Index: tools/clang/scripts/update.sh |
diff --git a/tools/clang/scripts/update.sh b/tools/clang/scripts/update.sh |
index 2700001d62173ac12c61335b2d88d6051e6ac353..01a774e36ded6136ed6c0dbfcdac0ce26f77173e 100755 |
--- a/tools/clang/scripts/update.sh |
+++ b/tools/clang/scripts/update.sh |
@@ -15,6 +15,7 @@ LLVM_DIR="${THIS_DIR}/../../../third_party/llvm" |
LLVM_BUILD_DIR="${LLVM_DIR}/../llvm-build" |
LLVM_BOOTSTRAP_DIR="${LLVM_DIR}/../llvm-bootstrap" |
CLANG_DIR="${LLVM_DIR}/tools/clang" |
+CLANG_TOOLS_EXTRA_DIR="${CLANG_DIR}/tools/extra" |
COMPILER_RT_DIR="${LLVM_DIR}/projects/compiler-rt" |
ANDROID_NDK_DIR="${LLVM_DIR}/../android_tools/ndk" |
STAMP_FILE="${LLVM_BUILD_DIR}/cr_build_revision" |
@@ -33,6 +34,7 @@ mac_only= |
run_tests= |
bootstrap= |
with_android=yes |
+with_tools_extra= |
if [[ "${OS}" = "Darwin" ]]; then |
with_android= |
fi |
@@ -54,6 +56,9 @@ while [[ $# > 0 ]]; do |
--without-android) |
with_android= |
;; |
+ --with-tools-extra) |
+ with_tools_extra=yes |
+ ;; |
--help) |
echo "usage: $0 [--force-local-build] [--mac-only] [--run-tests] " |
echo "--bootstrap: First build clang with CC, then with itself." |
@@ -61,6 +66,7 @@ while [[ $# > 0 ]]; do |
echo "--mac-only: Do initial download only on Mac systems." |
echo "--run-tests: Run tests after building. Only for local builds." |
echo "--without-android: Don't build ASan Android runtime library." |
+ echo "--with-tools-extra: Also build the clang-tools-extra repository." |
exit 1 |
;; |
esac |
@@ -236,6 +242,15 @@ echo Getting compiler-rt r"${CLANG_REVISION}" in "${COMPILER_RT_DIR}" |
svn co --force "${LLVM_REPO_URL}/compiler-rt/trunk@${CLANG_REVISION}" \ |
"${COMPILER_RT_DIR}" |
+if [[ -n "${with_tools_extra}" ]]; then |
+ echo Getting clang-tools-extra r"${CLANG_REVISION}" in \ |
+ "${CLANG_TOOLS_EXTRA_DIR}" |
+ svn co --force "${LLVM_REPO_URL}/clang-tools-extra/trunk@${CLANG_REVISION}" \ |
+ "${CLANG_TOOLS_EXTRA_DIR}" |
+else |
+ rm -rf "${CLANG_TOOLS_EXTRA_DIR}" |
Nico
2013/02/12 02:05:24
Since you went down this route: Do you want to run
dcheng
2013/02/12 02:09:22
I don't expect people to be making changes in this
|
+fi |
+ |
# Echo all commands. |
set -x |