nim-json-serialization/config.nims

38 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2023-12-13 09:07:57 +00:00
# json-serialization
# Copyright (c) 2023 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
# * MIT license ([LICENSE-MIT](LICENSE-MIT))
# at your option.
# This file may not be copied, modified, or distributed except according to
# those terms.
if defined(windows):
# disable timestamps in Windows PE headers - https://wiki.debian.org/ReproducibleBuilds/TimestampsInPEBinaries
switch("passL", "-Wl,--no-insert-timestamp")
# increase stack size, unless something else is setting the stack size
if not defined(windowsNoSetStack):
switch("passL", "-Wl,--stack,8388608")
# https://github.com/nim-lang/Nim/issues/4057
--tlsEmulation:off
if defined(i386):
# set the IMAGE_FILE_LARGE_ADDRESS_AWARE flag so we can use PAE, if enabled, and access more than 2 GiB of RAM
switch("passL", "-Wl,--large-address-aware")
# Avoid some rare stack corruption while using exceptions with a SEH-enabled
# toolchain: https://github.com/status-im/nimbus-eth2/issues/3121
switch("define", "nimRawSetjmp")
2022-07-12 20:22:39 +00:00
# begin Nimble config (version 1)
2023-12-26 02:38:34 +00:00
when defined(windows):
when fileExists("nimble-win.paths"):
include "nimble-win.paths"
elif fileExists("nimble.paths"):
include "nimble.paths"
elif defined(linux):
when fileExists("nimble-win.paths"):
include "nimble-linux.paths"
elif fileExists("nimble.paths"):
include "nimble.paths"
2022-07-12 20:22:39 +00:00
# end Nimble config