diff options
author | cushon <cushon@google.com> | 2017-10-30 17:03:18 -0400 |
---|---|---|
committer | John Cater <jcater@google.com> | 2017-10-31 10:37:35 -0400 |
commit | 41375ac41679bee2b5e51b5deba1597848d4134b (patch) | |
tree | 7899afdabb799d115cc4f4119c7606bd678d7f0d | |
parent | 3d5faa4eca6b1e47e08b5b4db26a524b85ab8e13 (diff) |
Document --host_javabase, --host_java_toolchain
RELNOTES: Document --host_javabase, --host_java_toolchain
PiperOrigin-RevId: 173945684
-rw-r--r-- | site/docs/user-manual.html | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/site/docs/user-manual.html b/site/docs/user-manual.html index de554bf380..d6899803f2 100644 --- a/site/docs/user-manual.html +++ b/site/docs/user-manual.html @@ -693,12 +693,19 @@ $ bazel fetch //... configuration: <code class='flag'>--compiler</code>, <code class='flag'>--use_ijars</code>, - <code class='flag'>--java_toolchain</code>, If <code class='flag'>--host_crosstool_top</code> is used, then the value of <code class='flag'>--host_cpu</code> is used to look up a <code>default_toolchain</code> in the Crosstool (ignoring <code class='flag'>--compiler</code>) for the host configuration. </li> + <li> + Use the value of <code class="flag">--host_javabase</code> for + <code class='flag'>--javabase</code> + </li> + <li> + Use the value of <code class="flag">--host_java_toolchain</code> for + <code class='flag'>--java_toolchain</code> + </li> <li>Use optimized builds for C++ code (<code>-c opt</code>). </li> <li>Generate no debugging information (<code class='flag'>--copt=-g0</code>). @@ -1777,6 +1784,13 @@ The default is <code>armeabi-v7a</code>. source files. </p> +<h4 id='flag--host_java_toolchain'><code class='flag'>--host_java_toolchain <var>label</var></code></h4> +<p> + If not specified, bazel uses the value of <code class='flag'>--java_toolchain</code> to compile + code in the host configuration, i.e., tools run during the build. The main purpose of this flag + is to enable cross-compilation. +</p> + <h4 id='flag--javabase'><code class='flag'>--javabase (<var>path</var>|<var>label</var>)</code></h4> <p> This option sets the <i>label</i> or the <i>path</i> of the base Java installation to @@ -1788,6 +1802,13 @@ The default is <code>armeabi-v7a</code>. <code>JAR</code>) are derived from this option. </p> +<h4 id='flag--host_javabase'><code class='flag'>--host_javabase <var>label</var></code></h4> +<p> + If not specified, bazel uses the value of <code class='flag'>--javabase</code> + in the host configuration, i.e., for Java-based tools that run during the build. + The main purpose of this flag is to enable cross-compilation. +</p> + <p> This does not select the Java compiler that is used to compile Java source files. The compiler can be selected by settings the |