From ff02ce2d50d8a4b445f9fba6076527c3db62425c Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 29 Jul 2010 21:30:04 +0200 Subject: handling of compiler procs improved for DLL generation --- lib/nimrtl.nim | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 lib/nimrtl.nim (limited to 'lib/nimrtl.nim') diff --git a/lib/nimrtl.nim b/lib/nimrtl.nim new file mode 100755 index 000000000..c61824f49 --- /dev/null +++ b/lib/nimrtl.nim @@ -0,0 +1,39 @@ +# +# +# Nimrod's Runtime Library +# (c) Copyright 2010 Andreas Rumpf +# +# See the file "copying.txt", included in this +# distribution, for details about the copyright. +# + +## Main file to generate a DLL from the standard library. +## The default Nimrtl does not only contain the ``system`` module, but these +## too: +## +## * strutils +## * parseutils +## * parseopt +## * parsecfg +## * strtabs +## * times +## * os +## * osproc +## * pegs +## * unicode +## * ropes +## * re +## +## So the resulting dynamic library is quite big. However, it is very easy to +## strip modules out. Just modify the ``import`` statement in +## ``lib/nimrtl.nim`` and recompile. Note that simply *adding* a module +## here is not sufficient, though. + +when system.appType != "lib": + {.error: "This file has to be compiled as a library!".} + +when not defined(createNimRtl): + {.error: "This file has to be compiled with '-d:createNimRtl'".} + + + -- cgit 1.4.1-2-gfad0