mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
Add support for -cov=ctfe
Incl. making sure `-cov=N ... -cov[=ctfe]` doesn't reset the required percentage to 0. Use a dummy *bool* option for a better help output (displaying `--cov`, not `--cov=<value>`).
This commit is contained in:
parent
9677bf4068
commit
47b25ca6ab
3 changed files with 38 additions and 34 deletions
|
@ -429,8 +429,6 @@ void parseCommandLine(Strings &sourceFiles) {
|
|||
global.params.output_mlir = opts::output_mlir ? OUTPUTFLAGset : OUTPUTFLAGno;
|
||||
global.params.output_s = opts::output_s ? OUTPUTFLAGset : OUTPUTFLAGno;
|
||||
|
||||
global.params.cov = (global.params.covPercent <= 100);
|
||||
|
||||
templateLinkage = opts::linkonceTemplates ? LLGlobalValue::LinkOnceODRLinkage
|
||||
: LLGlobalValue::WeakODRLinkage;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue