add missing evmc_enabled conditional compilation in evmc_dynamic_loader

This commit is contained in:
jangko 2021-12-12 16:32:13 +07:00
parent cf49b8d4fc
commit b3f21bf40c
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ proc evmc_create_nimbus_evm(): ptr evmc_vm {.cdecl, importc.}
# Nim thinks the module is unused because the function is only called via
# `.exportc` -> `.importc`.
{.warning[UnusedImport]: off.}:
when defined(evmc_enabled):
import ./evmc_vm_glue
var evmcLibraryPath {.threadvar.}: string