Reviewers: dcarney, Michael Achenbach,

Description:
Add support for downloading clang

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=
[email protected],[email protected]
LOG=n

Please review this at https://codereview.chromium.org/745963005/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+11, -0 lines):
  M .gitignore
  M DEPS


Index: .gitignore
diff --git a/.gitignore b/.gitignore
index 50073d51c76752d71a9012b91337441c24d5c02f..f720bee948660a5b45d97ea36900c02829050a19 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
Index: DEPS
diff --git a/DEPS b/DEPS
index 81344e97a0e284be1739d5465fc53e516740e659..fb9433ca8a6395e3bf5121f5f3a0b735c076c08f 100644
--- 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"],


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to