Skip to content

cc: clang-cl coverage on Windows (part of #13345) - #13461

Merged
TrapsterDK merged 2 commits into
mainfrom
fix-13345-clang-cl-coverage
Nov 18, 2026
Merged

TrapsterDK merged 2 commits into
mainfrom
fix-13345-clang-cl-coverage

Conversation

@TrapsterDK

@TrapsterDK TrapsterDK commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #13345

Changes

  • patches/llvm/msvc_coverage.patch (new, applied after msvc_fuzzer.patch): the MSVC ABI layer accepts coverage and llvm_coverage_map_format (compile -fprofile-instr-generate -fcoverage-mapping, link -fprofile-instr-generate), and resource_directory_default stages clang_rt.profile under coverage on the MSVC ABI. gcc_coverage_map_format stays unsupported.
  • tools/bazelrc/src/lib.rs, .dx/bazelrc/correctness.bazelrc, cli/cli/tests/adopt/golden/fresh_init_dx.txt: drop build:windows --features=-coverage; -gcc_coverage_map_format stays.
  • tools/testing/conformance/defs.bzl: WINDOWS_COVERAGE_OFF becomes WINDOWS_GCC_COVERAGE_OFF = ["-gcc_coverage_map_format"].
  • Patch registered in MODULE.bazel, patches/llvm/BUILD.bazel, patches/README.md, deploy/private/release/tests/BUILD.bazel, tools/testing/nested/src/compose.rs; new //patches/llvm/tests:msvc_coverage_test.

Evidence

  • windows_x86_64: green, run 44301892039 (on 10f9da7, same change minus the tools/bazelrc flag-count follow-up)
  • windows_arm64: green, run 44301897680 (on 10f9da7, same change minus the tools/bazelrc flag-count follow-up)

Scope: //cc/tests/conformance/..., rust/erlang/d coverage_test, //patches/llvm/tests:msvc_coverage_test, //tools/testing/conformance:defs_test.

Remaining

Nested-Bazel and *_consumer_test targets were not run locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

@TrapsterDK TrapsterDK added the needs-review Touches review paths; needs a second-session Review: comment label Nov 18, 2026
TrapsterDK and others added 2 commits November 18, 2026 13:40
Patch the llvm MSVC ABI layer to accept coverage and
llvm_coverage_map_format and stage clang_rt.profile under coverage.
Drop build:windows --features=-coverage from the generated bazelrc and
the -coverage entry from the conformance coverage subject.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
@TrapsterDK
TrapsterDK force-pushed the fix-13345-clang-cl-coverage branch from 2222755 to f0eb5fe Compare November 18, 2026 12:48
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Local on f0eb5fe: //patches/llvm/tests:msvc_coverage_test, //tools/bazelrc:dx_preset_test, //tools/testing/conformance:defs_test pass. Branch merges cleanly with main; not rebased so the queued Windows evidence runs 44301892039 and 44301897680 stay valid for this head.

@TrapsterDK
TrapsterDK marked this pull request as ready for review November 18, 2026 13:38
@TrapsterDK
TrapsterDK merged commit d026b43 into main Nov 18, 2026
16 of 28 checks passed
@TrapsterDK
TrapsterDK deleted the fix-13345-clang-cl-coverage branch November 18, 2026 13:39
TrapsterDK added a commit that referenced this pull request Nov 18, 2026
…loses #13345) (#13479)

clang-cl coverage landed in #13461 with green evidence on windows_x86_64
(run 44301892039) and windows_arm64 (run 44301897680).


Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@TrapsterDK TrapsterDK added the train Tested; land via merge train label Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request touched paths in .github/review-paths.txt and was merged without a Review: comment. See CONTRIBUTING.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Touches review paths; needs a second-session Review: comment train Tested; land via merge train

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant