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=
R=dcarney@chromium.org,machenbach@chromium.org
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#25538}
This commit is contained in:
jochen 2014-11-27 02:29:41 -08:00 committed by Commit bot
parent 50ef0690b2
commit 28fa2aa443
2 changed files with 11 additions and 0 deletions

2
.gitignore vendored
View 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

9
DEPS
View File

@ -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 = {
@ -81,6 +83,13 @@ hooks = [
"-s", "v8/buildtools/linux64/clang-format.sha1",
],
},
{
# 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": ".",