mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-17 23:36:34 +00:00
warningAsError is only available on nim >1.6
This commit is contained in:
parent
aaf13aeddf
commit
aa784a374a
@ -5,12 +5,12 @@ if dirExists("nimbledeps/pkgs"):
|
|||||||
switch("warning", "CaseTransition:off")
|
switch("warning", "CaseTransition:off")
|
||||||
switch("warning", "ObservableStores:off")
|
switch("warning", "ObservableStores:off")
|
||||||
switch("warning", "LockLevel:off")
|
switch("warning", "LockLevel:off")
|
||||||
switch("warningAsError", "UseBase:on")
|
|
||||||
--define:chronosStrictException
|
--define:chronosStrictException
|
||||||
--styleCheck:usages
|
--styleCheck:usages
|
||||||
if (NimMajor, NimMinor) < (1, 6):
|
if (NimMajor, NimMinor) < (1, 6):
|
||||||
--styleCheck:hint
|
--styleCheck:hint
|
||||||
else:
|
else:
|
||||||
|
switch("warningAsError", "UseBase:on")
|
||||||
--styleCheck:error
|
--styleCheck:error
|
||||||
|
|
||||||
# Avoid some rare stack corruption while using exceptions with a SEH-enabled
|
# Avoid some rare stack corruption while using exceptions with a SEH-enabled
|
||||||
|
Loading…
x
Reference in New Issue
Block a user