Add support for downloading clang
authorjochen <jochen@chromium.org>
Thu, 27 Nov 2014 10:29:41 +0000 (02:29 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 27 Nov 2014 10:29:51 +0000 (10:29 +0000)
Still requires changes to gyp files to select the built-in clang as
compiler and make clang the default on the platforms we want it.

BUG=
R=dcarney@chromium.org,machenbach@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/745963005

Cr-Commit-Position: refs/heads/master@{#25538}

.gitignore
DEPS

index 50073d5..f720bee 100644 (file)
@@ -69,6 +69,8 @@ shell_g
 /third_party
 /third_party/icu
 /third_party/llvm
+/third_party/llvm-build
+/tools/clang
 /tools/jsfunfuzz
 /tools/jsfunfuzz.zip
 /tools/oom_dump/oom_dump
diff --git a/DEPS b/DEPS
index 81344e9..fb9433c 100644 (file)
--- a/DEPS
+++ b/DEPS
@@ -18,6 +18,8 @@ deps = {
     Var("git_url") + "/external/googletest.git@4650552ff637bb44ecf7784060091cbed3252211",
   "v8/testing/gmock":
     Var("git_url") + "/external/googlemock.git@896ba0e03f520fb9b6ed582bde2bd00847e3c3f2",
+  "v8/tools/clang":
+    Var("git_url") + "/chromium/src/tools/clang.git@327e26ee7f6ae6f86fb335113b46cb86ed3cb0dc",
 }
 
 deps_os = {
@@ -82,6 +84,13 @@ hooks = [
     ],
   },
   {
+    # Pull clang if needed or requested via GYP_DEFINES.
+    # Note: On Win, this should run after win_toolchain, as it may use it.
+    'name': 'clang',
+    'pattern': '.',
+    'action': ['python', 'v8/tools/clang/scripts/update.py', '--if-needed'],
+  },
+  {
     # A change to a .gyp, .gypi, or to GYP itself should run the generator.
     "pattern": ".",
     "action": ["python", "v8/build/gyp_v8"],