From 0ecf3f7a78f67cbecefb13dc5cee8d655dbbe738 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 18 Dec 2024 16:43:19 +0100 Subject: [PATCH] Update specific conf for Nim 2.x --- config.nims | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.nims b/config.nims index b64aacbd..6a4767ad 100644 --- a/config.nims +++ b/config.nims @@ -41,7 +41,7 @@ when defined(windows): # The dynamic Chronicles output currently prevents us from using colors on Windows # because these require direct manipulations of the stdout File object. - switch("define", "chronicles_colors=off") + switch("define", "chronicles_colors=NoColors") # This helps especially for 32-bit x86, which sans SSE2 and newer instructions # requires quite roundabout code generation for cryptography, and other 64-bit @@ -85,6 +85,8 @@ when (NimMajor, NimMinor) >= (1, 6): --warning:"DotLikeOps:off" when (NimMajor, NimMinor, NimPatch) >= (1, 6, 11): --warning:"BareExcept:off" +when (NimMajor, NimMinor) >= (2, 0): + --mm:refc switch("define", "withoutPCRE")