Skip to content

Conversation

@ma-oli
Copy link
Contributor

@ma-oli ma-oli commented Aug 14, 2025

Allow overriding the target triple used by the Xcode Swift toolchain through the CC_TARGET_TRIPLE environment variable. As cc_toolchain.target_gnu_system_name is getting deprecated, and as rules based toolchain currently don't offer the option to set it anymore, this offers a way by which someone can define a rules based toolchain and still have working swift rules.

Copy link
Member

@keith keith left a comment

Choose a reason for hiding this comment

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

seems low risk / effort enough to me, but should we also do this in the linux toolchain that reads this attr?

Allow overriding the target triple used by the Xcode Swift toolchain
through the CC_TARGET_TRIPLE environment variable. As
cc_toolchain.target_gnu_system_name is getting deprecated, and as rules
based toolchain currently don't offer the option to set it anymore, this
offers a way by which someone can define a rules based toolchain and
still have working swift rules.
@ma-oli ma-oli force-pushed the use-triple-from-var branch from 3915eb9 to 6a53d38 Compare August 15, 2025 18:30
@ma-oli
Copy link
Contributor Author

ma-oli commented Aug 15, 2025

Done ✅

@keith keith enabled auto-merge (squash) August 15, 2025 18:36
@keith keith merged commit 646d6d2 into bazelbuild:master Aug 15, 2025
13 checks passed
@ma-oli ma-oli deleted the use-triple-from-var branch August 15, 2025 19:40
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