diff --git a/.gitignore b/.gitignore index eea1760e4d..8e92321002 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,6 @@ /gerrit-package-plugins /.buckconfig.local /.buckd +/buck-cache /buck-out /local.properties diff --git a/Documentation/asciidoc.defs b/Documentation/asciidoc.defs index c6df544cf9..389e0ca763 100644 --- a/Documentation/asciidoc.defs +++ b/Documentation/asciidoc.defs @@ -46,7 +46,7 @@ def genasciidoc( ) genrule( name = name, - cmd = '', + cmd = ':>$OUT', srcs = [], deps = [':' + o for o in outs], out = name + '__done', diff --git a/Documentation/dev-buck.txt b/Documentation/dev-buck.txt index f5bdbea9f8..329459d10c 100644 --- a/Documentation/dev-buck.txt +++ b/Documentation/dev-buck.txt @@ -216,6 +216,23 @@ being built, or in `~/.gerritcodereview/`. The file in the root of the gerrit repository has precedence. +Caching Build Results +~~~~~~~~~~~~~~~~~~~~~ + +Build results can be locally cached, saving rebuild time when +switching between Git branches. Buck's documentation covers +caching in link:http://facebook.github.io/buck/concept/buckconfig.html[buckconfig]. +The trivial case using a local directory is: + +---- + cat >.buckconfig.local <