Skip to content

Generic --host_opt flag #13048

@keith

Description

@keith

One thing we see come up a lot is needing to pass options that we pass to our build differently for the host configuration. In some cases bazel has a flag for this like --host_swiftcopt / --swiftcopt etc. In other cases, for whatever reason, bazel does not yet have a flag for the use case, such as #13001 or --host_features and how --features applies everywhere.

I think it would be useful for there to be a generic --host_opt flag with syntax such as --host_opt=--normal_opt=value that allowed you to pass through arbitrary bazel options to the host configuration.

This opens the door for much more API usage for the host configuration, but I think that could be preferred to the trade off of trying to add a host flag for ever applicable option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)not staleIssues or PRs that are inactive but not considered staleteam-Configurabilityplatforms, toolchains, cquery, select(), config transitionstype: feature request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions