From 8a599fb57116e8f6df977bd57220113e5738f7d9 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 24 Oct 2019 22:51:13 +0200 Subject: [PATCH] fixes #12491 [backport] --- compiler/vmops.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/vmops.nim b/compiler/vmops.nim index 1c184cb79e..b46faeb0fe 100644 --- a/compiler/vmops.nim +++ b/compiler/vmops.nim @@ -152,7 +152,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.} =