diff options
author | bptato <nincsnevem662@gmail.com> | 2025-01-26 22:33:19 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-01-26 22:33:19 +0100 |
commit | 65e2ffcb88e657783cc93342a93b75a0e8dbcf24 (patch) | |
tree | 71ee485453379498266964bf6acbc291249b1d9b /src/main.nim | |
parent | e09bedbb44e45de48adc030daa240d7aa9693339 (diff) | |
download | chawan-65e2ffcb88e657783cc93342a93b75a0e8dbcf24.tar.gz |
main: add version check
ref. https://todo.sr.ht/~bptato/chawan/44
Diffstat (limited to 'src/main.nim')
-rw-r--r-- | src/main.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.nim b/src/main.nim index 6b220557..e5d8d89b 100644 --- a/src/main.nim +++ b/src/main.nim @@ -1,3 +1,7 @@ +when NimMajor < 2: + {.error("Nim versions older than 2.0.0 can not compile Chawan. " & + "Please grab a newer one from https://nim-lang.org/install.html").} + import std/options import std/os import std/posix |