nim-raft/misc/vm_compile_info.nim

32 lines
752 B
Nim
Raw Normal View History

2023-08-31 20:52:52 +00:00
# nim-raft
# Copyright (c) 2023 Status Research & Development GmbH
2023-08-31 14:05:41 +00:00
# Licensed under either of
2023-08-31 20:52:52 +00:00
# * 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.
2023-08-31 14:05:41 +00:00
func vmName(): string =
when defined(evmc_enabled):
"evmc"
else:
"nimvm"
const
VmName* = vmName()
warningMsg = block:
var rc = "*** Compiling with " & VmName
when defined(legacy_eth66_enabled):
rc &= ", legacy-eth/66"
when defined(chunked_rlpx_enabled):
rc &= ", chunked-rlpx"
when defined(boehmgc):
rc &= ", boehm/gc"
rc &= " enabled"
rc
{.warning: warningMsg.}
{.used.}