From fe4196e7da6067eed07b7f306455621603a5751a Mon Sep 17 00:00:00 2001 From: Rintaro Kuroiwa Date: Fri, 27 Jun 2014 14:51:49 -0700 Subject: [PATCH] Add hook to DEPS for pulling clang Change-Id: I43e637467f3efd31e12b75f0a08cc05ad5a4965e --- DEPS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DEPS b/DEPS index fb04d317a8..d8f63cc5a7 100644 --- a/DEPS +++ b/DEPS @@ -108,6 +108,14 @@ deps_os = { } hooks = [ + { + # This snippet is from chromium src/DEPS. Run gclient with + # GYP_DEFINES="clang=1" to automatically pull in clang at sync. + # Pull clang if on Mac or clang is requested via GYP_DEFINES. + "name": "clang", + "pattern": ".", + "action": ["python", "src/tools/clang/scripts/update.py", "--mac-only"], + }, { # A change to a .gyp, .gypi, or to GYP itself should run the generator. "pattern": ".",