Bug 21119 – Code coverage checker is not instrumenting backend source files

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-08-05T11:01:12Z
Last change time
2020-08-06T20:23:43Z
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2020-08-05T11:01:12Z
Comment #1 by moonlightsentinel — 2020-08-06T11:37:45Z
Probably because the backend is compiled with `-betterC` which apparently breaks `-cov`.
Comment #2 by dlang-bot — 2020-08-06T12:01:47Z
@MoonlightSentinel created dlang/dmd pull request #11522 "Workaround for Issue 21119 - Disable -betterC for coverage builds" mentioning this issue: - Workaround for Issue 21119 - Disable -betterC for coverage builds because -betterC apparently breaks coverage generation https://github.com/dlang/dmd/pull/11522
Comment #3 by dlang-bot — 2020-08-06T19:43:55Z
dlang/dmd pull request #11522 "Workaround for Issue 21119 - Disable -betterC for coverage builds" was merged into master: - ceb3cc976f1968d83a2f91112b30bd2a9d0ba647 by MoonlightSentinel: Workaround for Issue 21119 - Disable -betterC for coverage builds because `-betterC` apparently breaks coverage generation https://github.com/dlang/dmd/pull/11522
Comment #4 by bugzilla — 2020-08-06T20:22:40Z
-cov requires linking with druntime, and -betterC explicitly must not require druntime. This is not a bug in the backend.
Comment #5 by bugzilla — 2020-08-06T20:23:43Z
Working now.