From 22a1b8d82d524d8f19492617f97017f34468253e Mon Sep 17 00:00:00 2001 From: SChernykh Date: Thu, 28 Jan 2021 14:38:28 +0100 Subject: [PATCH] Fix compilation error when RandomX and Argon2 are disabled --- src/core/config/ConfigTransform.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/config/ConfigTransform.cpp b/src/core/config/ConfigTransform.cpp index b32aede37..10f819e48 100644 --- a/src/core/config/ConfigTransform.cpp +++ b/src/core/config/ConfigTransform.cpp @@ -149,8 +149,10 @@ void xmrig::ConfigTransform::transform(rapidjson::Document &doc, int key, const case IConfig::YieldKey: /* --cpu-no-yield */ return set(doc, CpuConfig::kField, CpuConfig::kYield, false); +# ifdef XMRIG_ALGO_ARGON2 case IConfig::Argon2ImplKey: /* --argon2-impl */ return set(doc, CpuConfig::kField, CpuConfig::kArgon2Impl, arg); +# endif # ifdef XMRIG_FEATURE_ASM case IConfig::AssemblyKey: /* --asm */