remove isCmdLine; use passCmd1

This commit is contained in:
Timothee Cour 2020-02-26 03:10:11 -08:00 • committed by Andreas Rumpf
commit c1cbf94e2d
4 changed files with 3 additions and 7 deletions

View file

@ -288,7 +288,6 @@ type
structuredErrorHook*: proc (config: ConfigRef; info: TLineInfo; msg: string;
severity: Severity) {.closure, gcsafe.}
cppCustomNamespace*: string
isCmdLine*: bool # whether we are currently processing cmdline args, not cfg files
proc hasHint*(conf: ConfigRef, note: TNoteKind): bool =
optHints in conf.options and note in conf.notes
@ -394,7 +393,6 @@ proc newConfigRef*(): ConfigRef =
arguments: "",
suggestMaxResults: 10_000,
maxLoopIterationsVM: 10_000_000,
isCmdLine: false,
)
setTargetFromSystem(result.target)
# enable colors by default on terminals