mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 05:53:22 +00:00
* enable stricteffects * add gcsafe * fix tests * use func * fixes pegs tests * explicitly mark repr related procs with noSideEffect * add nimLegacyEffects * change URL * fixes docopt * add `raises: []` to repr * fixes weave * fixes nimyaml * fixes glob * fixes parsetoml * Apply suggestions from code review * Update testament/important_packages.nim * add legacy:laxEffects
30 lines
897 B
Nim
30 lines
897 B
Nim
# this config.nims also needs to exist to prevent future regressions, see #9990
|
|
|
|
cppDefine "errno"
|
|
cppDefine "unix"
|
|
|
|
# mangle the macro names in nimbase.h
|
|
cppDefine "NAN_INFINITY"
|
|
cppDefine "INF"
|
|
cppDefine "NAN"
|
|
|
|
when defined(nimStrictMode):
|
|
# xxx add more flags here, and use `-d:nimStrictMode` in more contexts in CI.
|
|
|
|
# pending bug #14246, enable this:
|
|
# when defined(nimHasWarningAsError):
|
|
# switch("warningAsError", "UnusedImport")
|
|
|
|
when defined(nimHasHintAsError):
|
|
# switch("hint", "ConvFromXtoItselfNotNeeded")
|
|
switch("hintAsError", "ConvFromXtoItselfNotNeeded")
|
|
# future work: XDeclaredButNotUsed
|
|
|
|
when defined(windows) and not defined(booting):
|
|
# Avoid some rare stack corruption while using exceptions with a SEH-enabled
|
|
# toolchain: https://github.com/nim-lang/Nim/pull/19197
|
|
switch("define", "nimRawSetjmp")
|
|
|
|
switch("define", "nimVersion:" & NimVersion)
|
|
|