From 8a68a21d3cb57a882b3fea6cfe60f7828e6c01c7 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 edbee6ed..a5ada6a0 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()); }