[Issue 17300] Enable setting code coverage options on the command line
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 11 06:04:33 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17300
--- Comment #1 from github-bugzilla at puremagic.com ---
Commit pushed to master at https://github.com/dlang/druntime
https://github.com/dlang/druntime/commit/269d720186185c51df3560b066bee4cbe9fbeb7e
Fix issue 17300 - Make coverage reports configurable via --DRT-covopt
The coverage module has a couple of options that can be set through some
weirdly looking dmd_coverSetMerge(), dmd_coverSourcePath() and
dmd_coverDestPath() functions (I guess the dmd prefix comes from
pre-druntime times).
These options don't only use non standard names, they also don't use the
standard --DRT-xxx / DRT_XXX runtime options passing mechanism, and they
can only be overridden in code.
This commit plugs the runtime options mechanism and adds support to set
these options via --DRT-covopt (and matching environment variables),
providing the sub-options merge, dstpath and srcpath.
The old functions are kept for backwards compatibility (they are used by
DMD itself for example), but should probably be removed in some distant
future.
--
More information about the Digitalmars-d-bugs
mailing list