summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-10-16 23:37:52 -0700
committerGitHub <noreply@github.com>2021-10-17 08:37:52 +0200
commitf77dea01fd980734a3ed4acb812575827540aff9 (patch)
tree551a89d58f170d7b1fc7f8e51e6b3bf5144c15cd /config
parent162b07d72cbe79bad1ddf99413ba508f07a831b1 (diff)
downloadNim-f77dea01fd980734a3ed4acb812575827540aff9.tar.gz
define `nimVersion` automatically and avoid needing -d:nimVersion140 (#18726)
* define `nimVersion` and avoid needing -d:nimVersion140

* fix changelog
Diffstat (limited to 'config')
-rw-r--r--config/config.nims2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/config.nims b/config/config.nims
index 2ae86012c..893d6960f 100644
--- a/config/config.nims
+++ b/config/config.nims
@@ -14,3 +14,5 @@ when defined(nimStrictMode):
     # switch("hint", "ConvFromXtoItselfNotNeeded")
     switch("hintAsError", "ConvFromXtoItselfNotNeeded")
     # future work: XDeclaredButNotUsed
+
+switch("define", "nimVersion:" & NimVersion)