From a63677e255672ea73f556d16a3492395531279ad Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 27 Sep 2018 17:17:19 +0300 Subject: [PATCH] Fix missing "asm" in generated config. --- src/core/Config.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/Config.cpp b/src/core/Config.cpp index 20a3aece..79b19265 100644 --- a/src/core/Config.cpp +++ b/src/core/Config.cpp @@ -69,6 +69,10 @@ void xmrig::Config::getJSON(rapidjson::Document &doc) const doc.AddMember("algo", StringRef(algorithm().name()), allocator); +# ifndef XMRIG_NO_ASM + doc.AddMember("asm", Asm::toJSON(m_assembly), allocator); +# endif + Value api(kObjectType); api.AddMember("port", apiPort(), allocator); api.AddMember("access-token", apiToken() ? Value(StringRef(apiToken())).Move() : Value(kNullType).Move(), allocator);