Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: let 'toolchain' attr be selectable #1321

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

jsun-splunk
Copy link
Contributor

@jsun-splunk jsun-splunk commented Nov 18, 2024

The toolchain attr is not currently selectable making builds that need to handle multiple platforms (incl windows) very verbose. The target needs to be declared at least twice, once for windows and once for unix based platforms.

By making it selectable, even though we still need a rule() and rule_variant() declaration, we can wrap it in a macro and only expose the macro to the user.

The toolchain attr is not currently selectable making builds that need
to handle multiple platforms (incl windows) very verbose. The target
needs to be declared at least twice, once for windows and once for unix
based platforms.

By making it selectable, even though we still need a rule() and
rule_variant() declaration, we can wrap it in a macro and only expose
the macro to the user.
@jsun-splunk jsun-splunk force-pushed the jsun-fix-selectable-toolchain branch from 30a378b to d7a3ff9 Compare November 18, 2024 10:51
Copy link
Member

@jsharpe jsharpe left a comment

Choose a reason for hiding this comment

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

This seems reasonable enough to me

@jsharpe jsharpe enabled auto-merge (squash) November 18, 2024 22:09
@jsharpe jsharpe merged commit a8421af into bazel-contrib:main Nov 18, 2024
1 check passed
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.

2 participants