config.nims 533 B

1234567891011121314151617
  1. # this config.nims also needs to exist to prevent future regressions, see #9990
  2. cppDefine "errno"
  3. cppDefine "unix"
  4. when defined(nimStrictMode):
  5. # xxx add more flags here, and use `-d:nimStrictMode` in more contexts in CI.
  6. # pending bug #14246, enable this:
  7. # when defined(nimHasWarningAsError):
  8. # switch("warningAsError", "UnusedImport")
  9. when defined(nimHasHintAsError):
  10. # switch("hint", "ConvFromXtoItselfNotNeeded")
  11. switch("hintAsError", "ConvFromXtoItselfNotNeeded")
  12. # future work: XDeclaredButNotUsed