diff --git a/compiler/commands.nim b/compiler/commands.nim index e9806e6d86..3bc0b604a7 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -316,6 +316,9 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) = of "nonimblepath", "nobabelpath": expectNoArg(switch, arg, pass, info) options.gNoNimblePath = true + options.lazyPaths.head = nil + options.lazyPaths.tail = nil + options.lazyPaths.counter = 0 of "excludepath": expectArg(switch, arg, pass, info) let path = processPath(arg, info)