Skip to content

Conversation

@ddunl
Copy link
Contributor

@ddunl ddunl commented Jan 25, 2026

This adds extra_exec_compatible_with and extra_target_compatible_with as extensions so that users can control whether the toolchains generated by hermetic_cc_toolchain are selected.

This is intended to fix #205

@CLAassistant
Copy link

CLAassistant commented Jan 25, 2026

CLA assistant check
All committers have signed the CLA.

doc = "Each setting is added to every toolchain to make them more restrictive",
)

_extra_target_compatible_with = tag_class(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with these two new tag classes, do you think we still need _extra_target_settings?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel strongly either way, for the project that motivated me to send this PR I definitely won't need it now that I can specify with target_compatible_with, but I could imagine situations where it might be convenient to control which toolchain is used with settings rather than constraints.

@linzhp linzhp merged commit 5e65e32 into uber:main Jan 26, 2026
6 checks passed
@ddunl
Copy link
Contributor Author

ddunl commented Jan 26, 2026

Thanks for the speedy response 😃

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.

Add a way to specify target extra_target_compatible_with constraints

3 participants