config.nims 897 B

123456789101112131415161718192021222324252627282930
  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. # pending bug #14246, 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. when defined(windows) and not defined(booting):
  18. # Avoid some rare stack corruption while using exceptions with a SEH-enabled
  19. # toolchain: https://github.com/nim-lang/Nim/pull/19197
  20. switch("define", "nimRawSetjmp")
  21. switch("define", "nimVersion:" & NimVersion)