diff options
author | flywind <xzsflywind@gmail.com> | 2022-04-12 15:48:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 09:48:48 +0200 |
commit | 26bcf18f918b2bcc7b6b2e230ae74d7726dca6d0 (patch) | |
tree | 49e00effc4562a3b77c4ee497bd88f2610260115 /compiler | |
parent | 26acc97864ede8e19dddd52aa04e0139da356e3e (diff) | |
download | Nim-26bcf18f918b2bcc7b6b2e230ae74d7726dca6d0.tar.gz |
fix #19680; check if stderr is static (#19709)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/vmgen.nim | 2 |
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 |