nimrtl.nim 766 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. #
  3. # Nim's Runtime Library
  4. # (c) Copyright 2010 Andreas Rumpf
  5. #
  6. # See the file "copying.txt", included in this
  7. # distribution, for details about the copyright.
  8. #
  9. ## Main file to generate a DLL from the standard library.
  10. ## The default Nimrtl does not only contain the ``system`` module, but these
  11. ## too:
  12. ##
  13. ## * parseutils
  14. ## * strutils
  15. ## * parseopt
  16. ## * parsecfg
  17. ## * strtabs
  18. ## * times
  19. ## * os
  20. ## * osproc
  21. ## * unicode
  22. ## * pegs
  23. ## * ropes
  24. ##
  25. when system.appType != "lib":
  26. {.error: "This file has to be compiled as a library!".}
  27. when not defined(createNimRtl):
  28. {.error: "This file has to be compiled with '-d:createNimRtl'".}
  29. import
  30. parseutils, strutils, parseopt, parsecfg, strtabs, unicode, pegs, ropes,
  31. os, osproc, times