From 80e597d9510fe913c13a5d120158f64b48a828ae Mon Sep 17 00:00:00 2001 From: Tony Butler Date: Mon, 11 Oct 2021 03:31:28 -0600 Subject: [PATCH] Fix #2583 compiling without kawpow (string ref is nonexistent then) --- 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 edbee6ed7..a5ada6a04 100644 --- a/src/core/config/ConfigTransform.cpp +++ b/src/core/config/ConfigTransform.cpp @@ -103,7 +103,9 @@ void xmrig::ConfigTransform::finalize(rapidjson::Document &doc) profile.AddMember(StringRef(kThreads), m_threads, allocator); profile.AddMember(StringRef(kAffinity), m_affinity, allocator); +# ifdef XMRIG_ALGO_KAWPOW doc[CpuConfig::kField].AddMember(StringRef(Algorithm::kKAWPOW), false, doc.GetAllocator()); +# endif doc[CpuConfig::kField].AddMember(StringRef(kAsterisk), profile, doc.GetAllocator()); }