summary refs log tree commit diff stats
path: root/lib/nimrtl.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2010-07-29 21:30:04 +0200
committerAndreas Rumpf <andreas@andreas-desktop>2010-07-29 21:30:04 +0200
commitff02ce2d50d8a4b445f9fba6076527c3db62425c (patch)
tree065d5ecddb38f871e516b49c333f565b6cba9b31 /lib/nimrtl.nim
parent804e2ac89d378b87e0ec8c723f607aa4271c57bb (diff)
downloadNim-ff02ce2d50d8a4b445f9fba6076527c3db62425c.tar.gz
handling of compiler procs improved for DLL generation
Diffstat (limited to 'lib/nimrtl.nim')
-rwxr-xr-xlib/nimrtl.nim39
1 files changed, 39 insertions, 0 deletions
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'".}
+
+
+