Thread overview
[Issue 21119] Code coverage checker is not instrumenting backend source files
Aug 06, 2020
Dlang Bot
Aug 06, 2020
Dlang Bot
Aug 06, 2020
Walter Bright
Aug 06, 2020
Walter Bright
August 06, 2020
https://issues.dlang.org/show_bug.cgi?id=21119

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg

--- Comment #1 from moonlightsentinel@disroot.org ---
Probably because the backend is compiled with `-betterC` which apparently breaks `-cov`.

--
August 06, 2020
https://issues.dlang.org/show_bug.cgi?id=21119

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@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

--
August 06, 2020
https://issues.dlang.org/show_bug.cgi?id=21119

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
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

--
August 06, 2020
https://issues.dlang.org/show_bug.cgi?id=21119

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
-cov requires linking with druntime, and -betterC explicitly must not require druntime. This is not a bug in the backend.

--
August 06, 2020
https://issues.dlang.org/show_bug.cgi?id=21119

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> ---
Working now.

--