print compiler warning about the VM used

why:
  handy to have confirmation about which of the three different VMs
  is activated
This commit is contained in:
Jordan Hrycaj 2021-04-21 11:15:06 +01:00 committed by zah
parent 18587f5496
commit 59d7ba1f1e
3 changed files with 24 additions and 0 deletions

View File

@ -7,6 +7,9 @@
# This file may not be copied, modified, or distributed except according to
# those terms.
import
../nimbus/vm_compile_info
import
os, strutils, net, options,
eth/keys, db/[storage_types, db_chain, select_backend],

View File

@ -0,0 +1,20 @@
# Nimbus
# Copyright (c) 2018 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
# http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed except
# according to those terms.
when defined(evmc_enabled):
{.warning: "*** Compiling with EVMC enabled".}
elif defined(vm2_enabled):
{.warning: "*** Compiling with VM2 enabled".}
else:
{.warning: "*** Compiling with standard NIM VM enabled".}
{.used.}

View File

@ -5,6 +5,7 @@
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../nimbus/vm_compile_info
import macros, strutils, os, unittest2, osproc
import threadpool