mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
fixes #22286
ref https://forum.nim-lang.org/t/10642
For backwards compatibilities, we might need to keep the changes under a
preview compiler flag. Let's see how many packags it break.
**TODO** in the following PRs
- [ ] Turn the `var T` destructors warning into an error with
`nimPreviewNonVarDestructor`
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
(cherry picked from commit 379299a5ac)
47 lines
793 B
Nim
47 lines
793 B
Nim
# Special configuration file for the Nim project
|
|
|
|
hint[XDeclaredButNotUsed]:off
|
|
|
|
define:booting
|
|
define:nimcore
|
|
define:nimPreviewFloatRoundtrip
|
|
define:nimPreviewSlimSystem
|
|
define:nimPreviewCstringConversion
|
|
define:nimPreviewProcConversion
|
|
define:nimPreviewRangeDefault
|
|
define:nimPreviewNonVarDestructor
|
|
threads:off
|
|
|
|
#import:"$projectpath/testability"
|
|
|
|
@if windows:
|
|
cincludes: "$lib/wrappers/libffi/common"
|
|
@end
|
|
|
|
define:useStdoutAsStdmsg
|
|
|
|
@if nimHasStyleChecks:
|
|
styleCheck:error
|
|
@end
|
|
|
|
|
|
#define:useNodeIds
|
|
#gc:markAndSweep
|
|
|
|
@if nimHasWarningObservableStores:
|
|
warning[ObservableStores]:off
|
|
@end
|
|
|
|
|
|
@if nimHasWarningAsError:
|
|
warningAsError[GcUnsafe2]:on
|
|
@end
|
|
|
|
@if nimHasWarnUnnamedBreak:
|
|
warningAserror[UnnamedBreak]:on
|
|
@end
|
|
|
|
@if nimHasWarnBareExcept:
|
|
warningAserror[BareExcept]:on
|
|
@end
|