nim.cfg 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Special configuration file for the Nim project
  2. hint[XDeclaredButNotUsed]:off
  3. define:booting
  4. define:nimcore
  5. define:nimPreviewSlimSystem
  6. define:nimPreviewCstringConversion
  7. define:nimPreviewProcConversion
  8. define:nimPreviewRangeDefault
  9. define:nimPreviewNonVarDestructor
  10. threads:off
  11. #import:"$projectpath/testability"
  12. @if windows:
  13. cincludes: "$lib/wrappers/libffi/common"
  14. @end
  15. define:useStdoutAsStdmsg
  16. @if nimHasStyleChecks:
  17. styleCheck:error
  18. @end
  19. #define:useNodeIds
  20. #gc:markAndSweep
  21. @if nimHasWarningObservableStores:
  22. warning[ObservableStores]:off
  23. @end
  24. @if nimHasWarningAsError:
  25. warningAsError[GcUnsafe2]:on
  26. @end
  27. @if nimHasWarnUnnamedBreak:
  28. warningAserror[UnnamedBreak]:on
  29. @end
  30. @if nimHasWarnBareExcept:
  31. warning[BareExcept]:on
  32. warningAserror[BareExcept]:on
  33. @end
  34. @if nimUseStrictDefs:
  35. experimental:strictDefs
  36. warningAsError[Uninit]:on
  37. warningAsError[ProveInit]:on
  38. @end
  39. @if nimHasWarnStdPrefix:
  40. warning[StdPrefix]:on
  41. warningAsError[StdPrefix]:on
  42. @end
  43. @if nimHasVtables:
  44. experimental:vtables
  45. @end