mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-11 05:14:40 +00:00
Fix compilation error when RandomX and Argon2 are disabled
This commit is contained in:
parent
f302b4b0ef
commit
22a1b8d82d
1 changed files with 2 additions and 0 deletions
|
@ -149,8 +149,10 @@ void xmrig::ConfigTransform::transform(rapidjson::Document &doc, int key, const
|
||||||
case IConfig::YieldKey: /* --cpu-no-yield */
|
case IConfig::YieldKey: /* --cpu-no-yield */
|
||||||
return set(doc, CpuConfig::kField, CpuConfig::kYield, false);
|
return set(doc, CpuConfig::kField, CpuConfig::kYield, false);
|
||||||
|
|
||||||
|
# ifdef XMRIG_ALGO_ARGON2
|
||||||
case IConfig::Argon2ImplKey: /* --argon2-impl */
|
case IConfig::Argon2ImplKey: /* --argon2-impl */
|
||||||
return set(doc, CpuConfig::kField, CpuConfig::kArgon2Impl, arg);
|
return set(doc, CpuConfig::kField, CpuConfig::kArgon2Impl, arg);
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef XMRIG_FEATURE_ASM
|
# ifdef XMRIG_FEATURE_ASM
|
||||||
case IConfig::AssemblyKey: /* --asm */
|
case IConfig::AssemblyKey: /* --asm */
|
||||||
|
|
Loading…
Reference in a new issue