From 623681e2126d0d2bcf76e957e6ad1b402e7f96e1 Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Tue, 14 Jun 2022 01:02:33 +0300 Subject: [PATCH] Add nimRawSetjmp define to config.nims (#285) * Add nimRawSetjmp define to config.nims * Add config to tests too. --- config.nims | 6 ++++++ tests/config.nims | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/config.nims b/config.nims index 325acb1e..6942fe2c 100644 --- a/config.nims +++ b/config.nims @@ -2,3 +2,9 @@ when system.fileExists("nimble.paths"): include "nimble.paths" # end Nimble config + +# This is workaround for `mingw64-gcc-12.1.0` issue. +# https://github.com/nim-lang/Nim/pull/19197 +# Should be removed when https://github.com/status-im/nim-chronos/issues/284 +# will be implemented. +switch("define", "nimRawSetjmp") diff --git a/tests/config.nims b/tests/config.nims index 165e2f85..e1d01894 100644 --- a/tests/config.nims +++ b/tests/config.nims @@ -1,3 +1,9 @@ switch("threads", "on") # switch("hints", "off") # switch("verbosity", "0") + +# This is workaround for `mingw64-gcc-12.1.0` issue. +# https://github.com/nim-lang/Nim/pull/19197 +# Should be removed when https://github.com/status-im/nim-chronos/issues/284 +# will be implemented. +switch("define", "nimRawSetjmp")