From 41bd968ac029edf89144a4b34014c32a4a32e254 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Thu, 30 Jun 2022 11:05:52 -0500 Subject: [PATCH] windows: workaround to prevent random segfaults --- config.nims | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.nims b/config.nims index 12ad5c0e..eae1e6b0 100644 --- a/config.nims +++ b/config.nims @@ -6,6 +6,9 @@ else: switch("nimcache", joinPath(currentSourcePath.parentDir, "nimcache/debug/$projectName")) if defined(windows): + # https://github.com/nim-lang/Nim/pull/19891 + switch("define", "nimRawSetjmp") + # disable timestamps in Windows PE headers - https://wiki.debian.org/ReproducibleBuilds/TimestampsInPEBinaries switch("passL", "-Wl,--no-insert-timestamp") # increase stack size