From f555338ce8b4053bec48ee2ba8299a757db1ee67 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 12 Jun 2018 21:08:41 +0200 Subject: [PATCH] bugfix: allow 'export' in the VM --- compiler/condsyms.nim | 1 + compiler/vmgen.nim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim index 773c0faf95..56587a4faf 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 7911abc8ec..59fed3cf76 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)