fixes #12491 [backport]

(cherry picked from commit 8a599fb571)
This commit is contained in:
Andreas Rumpf
2019-10-24 22:51:13 +02:00
committed by narimiran
parent f69dac8038
commit 5f77d5ad85

View File

@@ -148,7 +148,11 @@ proc registerAdditionalOps*(c: PCtx) =
systemop getCurrentException
registerCallback c, "stdlib.*.staticWalkDir", proc (a: VmArgs) {.nimcall.} =
setResult(a, staticWalkDirImpl(getString(a, 0), getBool(a, 1)))
systemop gorgeEx
if defined(nimsuggest) or c.config.cmd == cmdCheck:
discard "don't run staticExec for 'nim suggest'"
else:
systemop gorgeEx
macrosop getProjectPath
registerCallback c, "stdlib.os.getCurrentCompilerExe", proc (a: VmArgs) {.nimcall.} =