mirror of
https://github.com/logos-storage/questionable.git
synced 2026-01-02 13:53:11 +00:00
Switch warningAsError only works for Nim >= 1.4.0
This commit is contained in:
parent
cfe4c6fc95
commit
92641b552d
@ -1,2 +0,0 @@
|
||||
--warningAsError[UnsafeDefault]:"on"
|
||||
--warningAsError[ProveInit]:"on"
|
||||
@ -4,4 +4,8 @@ description = "Questionable tests for std/option"
|
||||
license = "MIT"
|
||||
|
||||
task test, "Runs the test suite":
|
||||
exec "nim c -f -r test.nim"
|
||||
var options = "-f -r"
|
||||
when (NimMajor, NimMinor) >= (1, 4):
|
||||
options &= " --warningAsError[UnsafeDefault]:on"
|
||||
options &= " --warningAsError[ProveInit]:on"
|
||||
exec "nim c " & options & " test.nim"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user