Skip to content

Allow platform-specific startup options #22763

@peakschris

Description

@peakschris

Description of the feature request:

Where a startup option is platform specific, currently there is no way to handle it in a single .bazelrc file that supports both platforms.

This would be desired:

startup:windows --host_jvm_args=-Djavax.net.ssl.trustStoreType=Windows-ROOT
startup:linux --host_jvm_args=-Djavax.net.ssl.trustStore=/etc/pki/java/cacerts

A similar syntax and set of built-in platforms to those supported by --enable_platform_specific_config would seem reasonable. I am not suggesting that we support the --config command line for startup.

Which category does this issue belong to?

Configurability

What underlying problem are you trying to solve with this feature?

A single .bazelrc file that can build multiple platforms without needing to 'configure' the file prior to first build.

Which operating system are you running Bazel on?

windows

What is the output of bazel info release?

7.2.0

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionstype: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions