Skip to content

config: more compiled languages honour //config:warnings_as_errors (part of #10075) - #10147

Draft
TrapsterDK wants to merge 1 commit into
mainfrom
warnings-all
Draft

TrapsterDK wants to merge 1 commit into
mainfrom
warnings-all

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #10075.

Done:

  • dx_wrap, dx_wrap_binary and dx_wrap_test take warnings = (attr, on, off) and append the flag-driven value to the upstream attribute. Upstream targets no longer receive warnings_as_errors.
  • rust (-Dwarnings in rustc_flags), swift (-warnings-as-errors), d (-w), fortran (-Werror), go (-Werror in copts when cgo is on), erlang (-Werror in erlc_opts).
  • Parity test //libs/starlark/tests:warnings_parity_test (and one in families/dotnet) lists every compiled language. zig, typescript and dart are explicit opt-outs.

Remaining:

  • Rename <lang>/rules/ to <lang>/private/ with package-private visibility and @rules_dx//<lang>:defs.bzl as the public API.

Checked: warnings_parity_test and the warnings analysis tests pass; build --nobuild on //rust/... //go/... //swift/... //d/... //fortran/... //erlang/... succeeds.
Not run: compiling existing rust, swift, d, fortran and erlang targets (remote cache errors, timeout), nested-Bazel and consumer tests, the tools/dx check gate (its tool build failed locally).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B

This branch has not been deployed

No deployments
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.

1 participant