summary refs log tree commit diff stats
path: root/lib/nimrtl.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nimrtl.nim')
-rw-r--r--lib/nimrtl.nim40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/nimrtl.nim b/lib/nimrtl.nim
new file mode 100644
index 000000000..a2fb6ce60
--- /dev/null
+++ b/lib/nimrtl.nim
@@ -0,0 +1,40 @@
+discard """
+batchable: false
+"""
+
+#
+#
+#            Nim'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:
+##
+## * parseutils
+## * strutils
+## * parseopt
+## * parsecfg
+## * strtabs
+## * times
+## * os
+## * osproc
+## * unicode
+## * pegs
+## * ropes
+## * cstrutils
+##
+
+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'".}
+
+import
+  std/[parseutils, strutils, parseopt, parsecfg, strtabs, unicode, pegs, ropes,
+  os, osproc, times, cstrutils]