Skip to content

Allow tweaking jvm flags per mnemonic#496

Draft
kisabaka wants to merge 4 commits into
bazelbuild:mainfrom
kisabaka:expose-jvm-flags
Draft

Allow tweaking jvm flags per mnemonic#496
kisabaka wants to merge 4 commits into
bazelbuild:mainfrom
kisabaka:expose-jvm-flags

Conversation

@kisabaka
Copy link
Copy Markdown
Contributor

@kisabaka kisabaka commented May 8, 2026

The default Xms value for the JVM tool calls is too large and can cause builds to fail on machines with restricted resources (e.g building a large Android application a single Windows machine).

This change introduces a flag that allows tweaking JVM settings per action.

Example usage:

bazel build //my:application --config=android \
 --@rules_android//rules:mnemonic_jvm_flags=CompileAndroidResources=-Xms512M \
 --@rules_android//rules:mnemonic_jvm_flags=StarlarkMergeCompiledAndroidResources=-Xms1G

Relates to #302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant