Roll GN: gn format is --in-place by default
authormtklein <mtklein@chromium.org>
Wed, 10 Aug 2016 14:30:58 +0000 (07:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Aug 2016 14:30:58 +0000 (07:30 -0700)
As usual, might as well roll, and this new behavior is a small convenience.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2231833002

Review-Url: https://codereview.chromium.org/2231833002

DEPS
PRESUBMIT.py
gn/BUILD.gn

diff --git a/DEPS b/DEPS
index 3944dab..62f6fd9 100644 (file)
--- a/DEPS
+++ b/DEPS
@@ -3,7 +3,7 @@ use_relative_paths = True
 # Dependencies on outside packages.
 #
 deps = {
-  "buildtools":  "https://chromium.googlesource.com/chromium/buildtools.git@9c6ad6f5cbc2f30989edc3504ec7f9d360542512",
+  "buildtools":  "https://chromium.googlesource.com/chromium/buildtools.git@33a32b8aa2b7274d246fcf85ce8f762cf4291418",
 
   "common": "https://skia.googlesource.com/common.git@c282fe0b6e392b14f88d647cbd86e1a3ef5498e0",
 
index 95fea4f..3fd8314 100644 (file)
@@ -196,10 +196,9 @@ def _CheckGNFormatted(input_api, output_api):
     try:
       subprocess.check_output(cmd)
     except subprocess.CalledProcessError:
-      fix = cmd[:]
-      fix[2] = '--in-place'
+      fix = 'gn format ' + f.LocalPath()
       results.append(output_api.PresubmitError(
-          '`%s` failed, try\n\t%s' % (' '.join(cmd), ' '.join(fix))))
+          '`%s` failed, try\n\t%s' % (' '.join(cmd), fix)))
   return results
 
 
index 48bd90f..1f7bd82 100644 (file)
@@ -54,6 +54,10 @@ config("executable") {
   }
 }
 
+pool("link_pool") {
+  depth = 0  #unlimited
+}
+
 toolchain("gcc_like") {
   lib_switch = "-l"
   lib_dir_switch = "-L"
@@ -113,6 +117,7 @@ toolchain("gcc_like") {
     output_prefix = "lib"
     default_output_extension = ".so"
     description = "$cxx -shared ... -o {{output}}"
+    pool = ":link_pool"
   }
 
   tool("link") {
@@ -121,6 +126,7 @@ toolchain("gcc_like") {
       "{{root_out_dir}}/{{target_output_name}}{{output_extension}}",
     ]
     description = "$cxx ... -o {{output}}"
+    pool = ":link_pool"
   }
 
   tool("stamp") {