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

🍒 add swift.suppress_warnings feature #1492

Merged

Conversation

aaronsky
Copy link
Contributor

cherry pick of #1489

This is something I could use in my codebase. I would like have a way to
propagate the `-suppress-warnings` flag to all swift libraries, and
specifically, selectively disable it in my REPO.bazel and individual
targets. This would allow me to globally suppress warnings for external
repositories, without enabling it in my own code, and without needing to
juggle the state of the flag setting (`-suppress-warnings` and other
diagnostic flags are mutually exclusive afaik). This is the same as how
we organize the `swift.warnings_as_errors` feature today.

Companion change in apple_support is bazelbuild/apple_support#367
@aaronsky aaronsky marked this pull request as ready for review February 11, 2025 00:13
@aaronsky aaronsky enabled auto-merge (squash) February 11, 2025 00:15
@aaronsky aaronsky merged commit d92bc8b into bazelbuild:2.x Feb 11, 2025
14 checks 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.

4 participants