summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2022-04-12 15:48:48 +0800
committerGitHub <noreply@github.com>2022-04-12 09:48:48 +0200
commit26bcf18f918b2bcc7b6b2e230ae74d7726dca6d0 (patch)
tree49e00effc4562a3b77c4ee497bd88f2610260115 /compiler
parent26acc97864ede8e19dddd52aa04e0139da356e3e (diff)
downloadNim-26bcf18f918b2bcc7b6b2e230ae74d7726dca6d0.tar.gz
fix #19680; check if stderr is static (#19709)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/vmgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 72bcef4db..dadcc3865 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -1479,7 +1479,7 @@ proc checkCanEval(c: PCtx; n: PNode) =
   # proc foo() = var x ...
   let s = n.sym
   if {sfCompileTime, sfGlobal} <= s.flags: return
-  if s.importcCondVar: return
+  if compiletimeFFI in c.config.features and s.importcCondVar: return
   if s.kind in {skVar, skTemp, skLet, skParam, skResult} and
       not s.isOwnedBy(c.prc.sym) and s.owner != c.module and c.mode != emRepl:
     # little hack ahead for bug #12612: assume gensym'ed variables