nimrtl.nim 810 B

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