Package: bazel-bootstrap / 4.2.3+ds-11

increase_heap_size_for_javac.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Increase heap size for javac
Author: Yun Peng <pcloudy@google.com>
Forwarded: not-needed
Last-Update: 2021-01-20

--- a/tools/build_rules/java_rules_skylark.bzl
+++ b/tools/build_rules/java_rules_skylark.bzl
@@ -67,7 +67,7 @@
 
     if ctx.files.srcs or ctx.files.srcjars:
         cmd += "%s/bin/javac" % java_runtime.java_home
-        cmd += " " + " ".join(javac_options)
+        cmd += " -J-Xmx2G " + " ".join(javac_options)
         if compile_time_jars:
             cmd += " -classpath '" + cmd_helper.join_paths(ctx.configuration.host_path_separator, compile_time_jars) + "'"
         cmd += " -d " + build_output + files + "\n"