summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-03-30 22:40:09 +0200
committerAraq <rumpf_a@web.de>2014-03-30 22:40:09 +0200
commit44ee8aecfd70d1d381b5eed5ae52b01fae04452b (patch)
tree6ee617cc92a8f0ae0f3d597476fb5ea148c2974c /compiler
parentaae774a2799232941be4791a40e1913507281e8e (diff)
downloadNim-44ee8aecfd70d1d381b5eed5ae52b01fae04452b.tar.gz
disable extern name checking as it breaks building of nimrtl.dll
Diffstat (limited to 'compiler')
-rw-r--r--compiler/pragmas.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index 692f4bac6..14d155539 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) =