diff options
author | Philipp Wollermann <philwo@google.com> | 2015-10-08 14:08:31 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2015-10-09 14:39:55 +0000 |
commit | ad018a64ba24803def18e7d3d78a201202ea5b7b (patch) | |
tree | ad012ab3035e547a0cb56d4a9ebf6a01300d26a0 /site/docs | |
parent | fd3de864878e4a273cc7dd9407d0111676e0a168 (diff) |
Document the --spawn_strategy and --genrule_strategy flag in the user manual.
--
MOS_MIGRATED_REVID=104958733
Diffstat (limited to 'site/docs')
-rw-r--r-- | site/docs/bazel-user-manual.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/site/docs/bazel-user-manual.html b/site/docs/bazel-user-manual.html index 22bc3ee021..1aee665e59 100644 --- a/site/docs/bazel-user-manual.html +++ b/site/docs/bazel-user-manual.html @@ -1881,6 +1881,42 @@ the compilation of binaries during the build. speed on the build. </p> +<h4 id='flag--spawn_strategy'><code class='flag'>--spawn_strategy <var>strategy</var></code></h4> +<p> + This option controls where and how commands are executed. +</p> +<ul> + + <li> + <code>standalone</code> causes commands to be executed as local subprocesses. + </li> + <li> + <code>sandboxed</code> causes commands to be executed inside a sandbox on the local machine. + This requires that all input files, data dependencies and tools are listed as direct + dependencies in the <code>srcs</code>, <code>data</code> and <code>tools</code> attributes. + This is the default on systems that support sandboxed execution. + </li> + +</ul> + +<h4 id='flag--genrule_strategy'><code class='flag'>--genrule_strategy <var>strategy</var></code></h4> +<p> + This option controls where and how genrules are executed. +</p> +<ul> + + <li> + <code>standalone</code> causes genrules to run as local subprocesses. + </li> + <li> + <code>sandboxed</code> causes genrules to run inside a sandbox on the local machine. + This requires that all input files are listed as direct dependencies in + the <code>srcs</code> attribute, and the program(s) executed are listed + in the <code>tools</code> attribute. + This is the default for Bazel on systems that support sandboxed execution. + </li> + +</ul> <h4 id='flag--local_genrule_timeout_seconds'><code class='flag'>--local_genrule_timeout_seconds <var>seconds</var></code></h4> <p>Sets a timeout value for local genrules with the given number of seconds.</p> |