mirror of
https://github.com/xmrig/xmrig.git
synced 2024-10-30 21:17:52 +00:00
Merge pull request #2067 from SChernykh/dev
Fix compilation error when RandomX and Argon2 are disabled
This commit is contained in:
commit
7a3df1c0bb
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