basicopt.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ::
  2. nim command [options] [projectfile] [arguments]
  3. Command:
  4. //compile, c compile project with default code generator (C)
  5. //doc generate the documentation for inputfile
  6. //doc2 generate the documentation for inputfile
  7. Arguments:
  8. arguments are passed to the program being run (if --run option is selected)
  9. Options:
  10. -p, --path:PATH add path to search paths
  11. -d, --define:SYMBOL(:VAL)
  12. define a conditional symbol
  13. (Optionally: Define the value for that symbol)
  14. -u, --undef:SYMBOL undefine a conditional symbol
  15. -f, --forceBuild force rebuilding of all modules
  16. --stackTrace:on|off turn stack tracing on|off
  17. --lineTrace:on|off turn line tracing on|off
  18. --threads:on|off turn support for multi-threading on|off
  19. -x, --checks:on|off turn all runtime checks on|off
  20. --objChecks:on|off turn obj conversion checks on|off
  21. --fieldChecks:on|off turn case variant field checks on|off
  22. --rangeChecks:on|off turn range checks on|off
  23. --boundChecks:on|off turn bound checks on|off
  24. --overflowChecks:on|off turn int over-/underflow checks on|off
  25. -a, --assertions:on|off turn assertions on|off
  26. --floatChecks:on|off turn all floating point (NaN/Inf) checks on|off
  27. --nanChecks:on|off turn NaN checks on|off
  28. --infChecks:on|off turn Inf checks on|off
  29. --deadCodeElim:on|off whole program dead code elimination on|off
  30. --opt:none|speed|size optimize not at all or for speed|size
  31. Note: use -d:release for a release build!
  32. --debugger:native|endb use native debugger (gdb) | ENDB (experimental)
  33. --app:console|gui|lib|staticlib
  34. generate a console app|GUI app|DLL|static library
  35. -r, --run run the compiled program with given arguments
  36. --advanced show advanced command line switches
  37. -h, --help show this help
  38. Note, single letter options that take an argument require a colon. E.g. -p:PATH.