Build fixes.
This commit is contained in:
@ -124,5 +124,5 @@ if (WITH_RANDOMX)
|
||||
endif()
|
||||
|
||||
|
||||
message(STATUS "WITH_MSR\t= ${WITH_MSR}")
|
||||
message(STATUS "WITH_PROFILING\t= ${WITH_PROFILING}")
|
||||
message(STATUS "WITH_MSR \t= ${WITH_MSR}")
|
||||
message(STATUS "WITH_PROFILING \t= ${WITH_PROFILING}")
|
||||
|
@ -22,28 +22,8 @@ set(SOURCES_BACKEND_CPU
|
||||
)
|
||||
|
||||
if (WITH_HWLOC)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
|
||||
add_subdirectory(src/3rdparty/hwloc)
|
||||
include_directories(src/3rdparty/hwloc/include)
|
||||
set(CPUID_LIB hwloc)
|
||||
else()
|
||||
find_package(HWLOC REQUIRED)
|
||||
include_directories(${HWLOC_INCLUDE_DIR})
|
||||
set(CPUID_LIB ${HWLOC_LIBRARY})
|
||||
endif()
|
||||
|
||||
add_definitions(/DXMRIG_FEATURE_HWLOC)
|
||||
|
||||
if (HWLOC_DEBUG)
|
||||
add_definitions(/DXMRIG_HWLOC_DEBUG)
|
||||
endif()
|
||||
|
||||
list(APPEND HEADERS_BACKEND_CPU src/backend/cpu/platform/HwlocCpuInfo.h)
|
||||
list(APPEND SOURCES_BACKEND_CPU src/backend/cpu/platform/HwlocCpuInfo.cpp)
|
||||
else()
|
||||
remove_definitions(/DXMRIG_FEATURE_HWLOC)
|
||||
|
||||
set(CPUID_LIB "")
|
||||
endif()
|
||||
|
||||
if (XMRIG_ARM)
|
||||
|
@ -9,7 +9,7 @@ if (NOT CMAKE_SYSTEM_PROCESSOR)
|
||||
message(WARNING "CMAKE_SYSTEM_PROCESSOR not defined")
|
||||
endif()
|
||||
|
||||
message(STATUS "XMRIG_64_BIT\t= ${XMRIG_64_BIT} (${CMAKE_SYSTEM_PROCESSOR})")
|
||||
message(STATUS "XMRIG_64_BIT \t= ${XMRIG_64_BIT} (${CMAKE_SYSTEM_PROCESSOR})")
|
||||
|
||||
if (XMRIG_64_BIT AND CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64)$")
|
||||
add_definitions(-DRAPIDJSON_SSE2)
|
||||
|
@ -2,14 +2,14 @@ if (WITH_RANDOMX AND NOT WITH_ARGON2)
|
||||
set(WITH_ARGON2 ON)
|
||||
endif()
|
||||
|
||||
message(STATUS "WITH_CN_LITE\t= ${WITH_CN_LITE}")
|
||||
message(STATUS "WITH_CN_HEAVY\t= ${WITH_CN_HEAVY}")
|
||||
message(STATUS "WITH_CN_PICO\t= ${WITH_CN_PICO}")
|
||||
message(STATUS "WITH_CN_FEMTO\t= ${WITH_CN_FEMTO}")
|
||||
message(STATUS "WITH_RANDOMX\t= ${WITH_RANDOMX}")
|
||||
message(STATUS "WITH_ARGON2\t= ${WITH_ARGON2}")
|
||||
message(STATUS "WITH_ASTROBWT\t= ${WITH_ASTROBWT}")
|
||||
message(STATUS "WITH_KAWPOW\t= ${WITH_KAWPOW}")
|
||||
message(STATUS "WITH_CN_LITE \t= ${WITH_CN_LITE}")
|
||||
message(STATUS "WITH_CN_HEAVY \t= ${WITH_CN_HEAVY}")
|
||||
message(STATUS "WITH_CN_PICO \t= ${WITH_CN_PICO}")
|
||||
message(STATUS "WITH_CN_FEMTO \t= ${WITH_CN_FEMTO}")
|
||||
message(STATUS "WITH_RANDOMX \t= ${WITH_RANDOMX}")
|
||||
message(STATUS "WITH_ARGON2 \t= ${WITH_ARGON2}")
|
||||
message(STATUS "WITH_ASTROBWT \t= ${WITH_ASTROBWT}")
|
||||
message(STATUS "WITH_KAWPOW \t= ${WITH_KAWPOW}")
|
||||
|
||||
if (WITH_CN_LITE)
|
||||
add_definitions(-DXMRIG_ALGO_CN_LITE)
|
||||
|
@ -1,4 +1,4 @@
|
||||
message(STATUS "WITH_HTTP\t= ${WITH_HTTP}")
|
||||
message(STATUS "WITH_HTTP \t= ${WITH_HTTP}")
|
||||
|
||||
if (WITH_HTTP)
|
||||
add_definitions(-DXMRIG_FEATURE_HTTP -DXMRIG_FEATURE_API)
|
||||
|
@ -1,5 +1,4 @@
|
||||
message(STATUS "WITH_HWLOC\t= ${WITH_HWLOC} (DEBUG=${HWLOC_DEBUG})")
|
||||
|
||||
message(STATUS "WITH_HWLOC \t= ${WITH_HWLOC} (DEBUG=${HWLOC_DEBUG})")
|
||||
|
||||
if (WITH_HWLOC)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
|
||||
|
@ -1,4 +1,4 @@
|
||||
message(STATUS "WITH_SODIUM\t= ${WITH_SODIUM}")
|
||||
message(STATUS "WITH_SODIUM \t= ${WITH_SODIUM}")
|
||||
|
||||
if (WITH_SODIUM)
|
||||
find_package(Sodium REQUIRED)
|
||||
|
@ -20,7 +20,7 @@ if (WITH_TLS)
|
||||
|
||||
add_definitions(-DXMRIG_FEATURE_TLS)
|
||||
|
||||
message(STATUS "WITH_TLS\t= ON (v${OPENSSL_VERSION})")
|
||||
message(STATUS "WITH_TLS \t= ON (v${OPENSSL_VERSION})")
|
||||
else()
|
||||
message(STATUS "WITH_TLS\t= ${WITH_TLS}")
|
||||
message(STATUS "WITH_TLS \t= ${WITH_TLS}")
|
||||
endif()
|
||||
|
@ -16,7 +16,6 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "hw/api/HwApi.h"
|
||||
#include "base/api/interfaces/IApiRequest.h"
|
||||
#include "base/tools/String.h"
|
||||
|
@ -29,7 +29,7 @@
|
||||
namespace xmrig {
|
||||
|
||||
|
||||
struct DmiReader;
|
||||
class DmiReader;
|
||||
|
||||
|
||||
class HwApi : public IApiListener
|
||||
|
@ -30,4 +30,4 @@ if (WITH_DMI)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
message(STATUS "WITH_DMI\t= ${WITH_DMI}")
|
||||
message(STATUS "WITH_DMI \t= ${WITH_DMI}")
|
||||
|
Reference in New Issue
Block a user