From 41375ac41679bee2b5e51b5deba1597848d4134b Mon Sep 17 00:00:00 2001 From: cushon Date: Mon, 30 Oct 2017 17:03:18 -0400 Subject: Document --host_javabase, --host_java_toolchain RELNOTES: Document --host_javabase, --host_java_toolchain PiperOrigin-RevId: 173945684 --- site/docs/user-manual.html | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'site/docs/user-manual.html') 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: --compiler, --use_ijars, - --java_toolchain, If --host_crosstool_top is used, then the value of --host_cpu is used to look up a default_toolchain in the Crosstool (ignoring --compiler) for the host configuration. +
  • + Use the value of --host_javabase for + --javabase +
  • +
  • + Use the value of --host_java_toolchain for + --java_toolchain +
  • Use optimized builds for C++ code (-c opt).
  • Generate no debugging information (--copt=-g0). @@ -1777,6 +1784,13 @@ The default is armeabi-v7a. source files.

    +

    --host_java_toolchain label

    +

    + If not specified, bazel uses the value of --java_toolchain 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. +

    +

    --javabase (path|label)

    This option sets the label or the path of the base Java installation to @@ -1788,6 +1802,13 @@ The default is armeabi-v7a. JAR) are derived from this option.

    +

    --host_javabase label

    +

    + If not specified, bazel uses the value of --javabase + 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. +

    +

    This does not select the Java compiler that is used to compile Java source files. The compiler can be selected by settings the -- cgit v1.2.3