nim.cfg 1.0 KB

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