windows: workaround to prevent random segfaults

This commit is contained in:
Michael Bradley, Jr 2022-06-30 11:05:52 -05:00 committed by Michael Bradley
parent 15ae157e61
commit 41bd968ac0
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,9 @@ else:
switch("nimcache", joinPath(currentSourcePath.parentDir, "nimcache/debug/$projectName")) switch("nimcache", joinPath(currentSourcePath.parentDir, "nimcache/debug/$projectName"))
if defined(windows): 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 # disable timestamps in Windows PE headers - https://wiki.debian.org/ReproducibleBuilds/TimestampsInPEBinaries
switch("passL", "-Wl,--no-insert-timestamp") switch("passL", "-Wl,--no-insert-timestamp")
# increase stack size # increase stack size