define nimVersion automatically and avoid needing -d:nimVersion140 (#18726)
* define `nimVersion` and avoid needing -d:nimVersion140 * fix changelog
This commit is contained in:
parent
162b07d72c
commit
f77dea01fd
5 changed files with 25 additions and 4 deletions
|
|
@ -14,3 +14,5 @@ when defined(nimStrictMode):
|
|||
# switch("hint", "ConvFromXtoItselfNotNeeded")
|
||||
switch("hintAsError", "ConvFromXtoItselfNotNeeded")
|
||||
# future work: XDeclaredButNotUsed
|
||||
|
||||
switch("define", "nimVersion:" & NimVersion)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue