diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/extccomp.nim | 6 | ||||
-rw-r--r-- | compiler/sigmatch.nim | 2 | ||||
-rw-r--r-- | compiler/vmdeps.nim | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 546849c0b..5f6033e57 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -630,13 +630,13 @@ proc callCCompiler*(projectfile: string) = res = execWithEcho(cmds[i]) if res != 0: rawMessage(errExecutionOfProgramFailed, []) elif optListCmd in gGlobalOptions or gVerbosity > 1: - res = execProcesses(cmds, {poEchoCmd, poUseShell, poParentStreams}, + res = execProcesses(cmds, {poEchoCmd, poUsePath, poParentStreams}, gNumberOfProcessors) elif gVerbosity == 1: - res = execProcesses(cmds, {poUseShell, poParentStreams}, + res = execProcesses(cmds, {poUsePath, poParentStreams}, gNumberOfProcessors, prettyCb) else: - res = execProcesses(cmds, {poUseShell, poParentStreams}, + res = execProcesses(cmds, {poUsePath, poParentStreams}, gNumberOfProcessors) if res != 0: if gNumberOfProcessors <= 1: diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index c9ceecc3c..e6e43d78c 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -462,7 +462,7 @@ proc matchUserTypeClass*(c: PContext, m: var TCandidate, openScope(c) inc c.inTypeClass - finally: + defer: dec c.inTypeClass closeScope(c) diff --git a/compiler/vmdeps.nim b/compiler/vmdeps.nim index 6673d0bd2..c44910b81 100644 --- a/compiler/vmdeps.nim +++ b/compiler/vmdeps.nim @@ -19,7 +19,7 @@ proc readOutput(p: Process): string = discard p.waitForExit proc opGorge*(cmd, input: string): string = - var p = startCmd(cmd) + var p = startProcess(cmd, options={poEvalCommand}) if input.len != 0: p.inputStream.write(input) p.inputStream.close() |