mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-23 03:05:09 +00:00
Fixed ARM build with hwloc.
This commit is contained in:
parent
c138161ee2
commit
ab0d3b8919
2 changed files with 6 additions and 4 deletions
|
@ -39,7 +39,6 @@ if (WITH_HWLOC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(SOURCES_CPUID
|
set(SOURCES_CPUID
|
||||||
src/backend/cpu/platform/BasicCpuInfo.cpp
|
|
||||||
src/backend/cpu/platform/BasicCpuInfo.h
|
src/backend/cpu/platform/BasicCpuInfo.h
|
||||||
src/backend/cpu/platform/HwlocCpuInfo.cpp
|
src/backend/cpu/platform/HwlocCpuInfo.cpp
|
||||||
src/backend/cpu/platform/HwlocCpuInfo.h
|
src/backend/cpu/platform/HwlocCpuInfo.h
|
||||||
|
@ -66,7 +65,10 @@ else()
|
||||||
set(SOURCES_CPUID
|
set(SOURCES_CPUID
|
||||||
src/backend/cpu/platform/BasicCpuInfo.h
|
src/backend/cpu/platform/BasicCpuInfo.h
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
if (NOT WITH_LIBCPUID)
|
||||||
if (XMRIG_ARM)
|
if (XMRIG_ARM)
|
||||||
set(SOURCES_CPUID ${SOURCES_CPUID} src/backend/cpu/platform/BasicCpuInfo_arm.cpp)
|
set(SOURCES_CPUID ${SOURCES_CPUID} src/backend/cpu/platform/BasicCpuInfo_arm.cpp)
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -36,10 +36,10 @@
|
||||||
|
|
||||||
|
|
||||||
xmrig::BasicCpuInfo::BasicCpuInfo() :
|
xmrig::BasicCpuInfo::BasicCpuInfo() :
|
||||||
m_aes(false),
|
|
||||||
m_brand(),
|
m_brand(),
|
||||||
m_avx2(false),
|
m_threads(std::thread::hardware_concurrency()),
|
||||||
m_threads(std::thread::hardware_concurrency())
|
m_aes(false),
|
||||||
|
m_avx2(false)
|
||||||
{
|
{
|
||||||
# ifdef XMRIG_ARMv8
|
# ifdef XMRIG_ARMv8
|
||||||
memcpy(m_brand, "ARMv8", 5);
|
memcpy(m_brand, "ARMv8", 5);
|
||||||
|
|
Loading…
Reference in a new issue