Fixed build without ASM.
This commit is contained in:
parent
d7b087d78a
commit
30ed5b33c0
1 changed files with 6 additions and 1 deletions
|
@ -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<uint64_t>(i->L2()), allocator);
|
||||
cpu.AddMember("l3", static_cast<uint64_t>(i->L3()), allocator);
|
||||
cpu.AddMember("cores", static_cast<uint64_t>(i->cores()), allocator);
|
||||
|
@ -72,6 +71,12 @@ rapidjson::Value xmrig::Cpu::toJSON(rapidjson::Document &doc)
|
|||
cpu.AddMember("nodes", static_cast<uint64_t>(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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue