#1284 Fixed build without RandomX.

This commit is contained in:
XMRig
2019-11-14 15:11:47 +07:00
parent f7c061e4aa
commit 432d11a3d4
2 changed files with 7 additions and 2 deletions

View File

@@ -157,7 +157,9 @@ size_t xmrig::Algorithm::l2() const
size_t xmrig::Algorithm::l3() const
{
# if defined(XMRIG_ALGO_RANDOMX) || defined(XMRIG_ALGO_ARGON2)
constexpr size_t oneMiB = 0x100000;
# endif
const Family f = family();
assert(f != UNKNOWN);