diff --git a/src/backend/cpu/Cpu.cpp b/src/backend/cpu/Cpu.cpp index 886ad15c..4d9effce 100644 --- a/src/backend/cpu/Cpu.cpp +++ b/src/backend/cpu/Cpu.cpp @@ -63,7 +63,6 @@ rapidjson::Value xmrig::Cpu::toJSON(rapidjson::Document &doc) cpu.AddMember("aes", i->hasAES(), allocator); cpu.AddMember("avx2", i->hasAVX2(), allocator); cpu.AddMember("x64", i->isX64(), allocator); - cpu.AddMember("assembly", StringRef(assembly.toString()), allocator); cpu.AddMember("l2", static_cast(i->L2()), allocator); cpu.AddMember("l3", static_cast(i->L3()), allocator); cpu.AddMember("cores", static_cast(i->cores()), allocator); @@ -72,6 +71,12 @@ rapidjson::Value xmrig::Cpu::toJSON(rapidjson::Document &doc) cpu.AddMember("nodes", static_cast(i->nodes()), allocator); cpu.AddMember("backend", StringRef(i->backend()), allocator); +# ifdef XMRIG_FEATURE_ASM + cpu.AddMember("assembly", StringRef(assembly.toString()), allocator); +# else + cpu.AddMember("assembly", "none", allocator); +# endif + return cpu; }