summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-06-12 21:08:41 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-06-12 21:08:41 +0200
commitf555338ce8b4053bec48ee2ba8299a757db1ee67 (patch)
treef270886cc55dc6a512a58c9c92f6333ccbfc6367
parentb379547fc0ce31b3e3411ba95b2163b65fdc24e7 (diff)
downloadNim-f555338ce8b4053bec48ee2ba8299a757db1ee67.tar.gz
bugfix: allow 'export' in the VM
-rw-r--r--compiler/condsyms.nim1
-rw-r--r--compiler/vmgen.nim2
2 files changed, 2 insertions, 1 deletions
diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim
index 773c0faf9..56587a4fa 100644
--- a/compiler/condsyms.nim
+++ b/compiler/condsyms.nim
@@ -70,3 +70,4 @@ proc initDefines*(symbols: StringTableRef) =
   defineSymbol("nimNoNil")
   defineSymbol("nimNoZeroTerminator")
   defineSymbol("nimNotNil")
+  defineSymbol("nimVmExportFixed")
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 7911abc8e..59fed3cf7 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -1899,7 +1899,7 @@ proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
     else:
       dest = tmp0
   of nkEmpty, nkCommentStmt, nkTypeSection, nkConstSection, nkPragma,
-     nkTemplateDef, nkIncludeStmt, nkImportStmt, nkFromStmt:
+     nkTemplateDef, nkIncludeStmt, nkImportStmt, nkFromStmt, nkExportStmt:
     unused(c, n, dest)
   of nkStringToCString, nkCStringToString:
     gen(c, n.sons[0], dest)