config.nims 656 B

12345678910111213141516171819202122232425
  1. # this config.nims also needs to exist to prevent future regressions, see #9990
  2. cppDefine "errno"
  3. cppDefine "unix"
  4. # mangle the macro names in nimbase.h
  5. cppDefine "NAN_INFINITY"
  6. cppDefine "INF"
  7. cppDefine "NAN"
  8. when defined(nimStrictMode):
  9. # xxx add more flags here, and use `-d:nimStrictMode` in more contexts in CI.
  10. # enable this:
  11. # when defined(nimHasWarningAsError):
  12. # switch("warningAsError", "UnusedImport")
  13. when defined(nimHasHintAsError):
  14. # switch("hint", "ConvFromXtoItselfNotNeeded")
  15. switch("hintAsError", "ConvFromXtoItselfNotNeeded")
  16. # future work: XDeclaredButNotUsed
  17. switch("define", "nimVersion:" & NimVersion)