From 1c58e281249ab2b264eaa26694406e2f326b7d6e Mon Sep 17 00:00:00 2001 From: XMRig Date: Wed, 11 Dec 2019 21:20:37 +0700 Subject: [PATCH] Don't build Rx_linux.cpp on ARM. --- cmake/randomx.cmake | 2 +- src/crypto/rx/Rx.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/randomx.cmake b/cmake/randomx.cmake index 5a225c00e..74f4048e1 100644 --- a/cmake/randomx.cmake +++ b/cmake/randomx.cmake @@ -79,7 +79,7 @@ if (WITH_RANDOMX) ) endif() - if (XMRIG_OS_LINUX) + if (XMRIG_OS_LINUX AND NOT XMRIG_ARM) list(APPEND SOURCES_CRYPTO src/crypto/rx/Rx_linux.cpp) endif() else() diff --git a/src/crypto/rx/Rx.cpp b/src/crypto/rx/Rx.cpp index 1de648c20..f6685fbf3 100644 --- a/src/crypto/rx/Rx.cpp +++ b/src/crypto/rx/Rx.cpp @@ -115,7 +115,7 @@ void xmrig::Rx::init(IRxListener *listener) } -#ifndef XMRIG_OS_LINUX +#if !defined(XMRIG_OS_LINUX) || defined(XMRIG_ARM) void xmrig::Rx::osInit(const RxConfig &) { }