From 44ee8aecfd70d1d381b5eed5ae52b01fae04452b Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 30 Mar 2014 22:40:09 +0200 Subject: [PATCH] disable extern name checking as it breaks building of nimrtl.dll --- compiler/pragmas.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index 692f4bac65..14d1555393 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -111,8 +111,9 @@ proc validateExternCName(s: PSym, info: TLineInfo) = proc makeExternExport(s: PSym, extname: string, info: TLineInfo) = setExternName(s, extname) - if gCmd in {cmdCompileToC, cmdCompileToCpp, cmdCompileToOC}: - validateExternCName(s, info) + # XXX to fix make it work with nimrtl. + #if gCmd in {cmdCompileToC, cmdCompileToCpp, cmdCompileToOC}: + # validateExternCName(s, info) incl(s.flags, sfExportc) proc processImportCompilerProc(s: PSym, extname: string) =