Skip to content

Conversation

sbmueller
Copy link
Contributor

@sbmueller sbmueller commented Sep 25, 2025

swift_cc_test_library and swift_c_test did not support the standard attribute, which allows an explicit selection of the language standard. We want to be able to precisely set the C/C++ standard for all targets. All other swift related rules support this already.

Reviving @armallen's old commits.

@sbmueller sbmueller requested a review from a team as a code owner September 25, 2025 07:28
@sbmueller sbmueller changed the title Add C++ standard argument to swift_cc_test_library Add standard argument to swift_cc_test_library Sep 25, 2025
@sbmueller sbmueller requested review from jakalm and removed request for reimerix September 25, 2025 07:29

_ = kwargs.pop("nocopts", []) # To handle API compatibility.

nocopts = kwargs.pop("nocopts", []) # pop because nocopts is a deprecated cc* attr.
Copy link
Contributor

Choose a reason for hiding this comment

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

Had a look at the rest of the file, and it seems swift_c_test might also be missing the standard option? swift_cc_test uses it.

@sbmueller sbmueller changed the title Add standard argument to swift_cc_test_library Add standard argument to swift_cc_test_library and swift_c_test Sep 25, 2025
@sbmueller sbmueller merged commit 4b5792a into main Sep 25, 2025
2 checks passed
@sbmueller sbmueller deleted the smuller/AP-3450-standard-support-for-tests branch September 25, 2025 08:46
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