mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 12:09:22 +00:00
Quick fixes.
This commit is contained in:
parent
ee9538ab22
commit
8c02e20828
2 changed files with 6 additions and 1 deletions
|
@ -194,7 +194,7 @@ if (WITH_RANDOMX)
|
||||||
src/crypto/randomx/jit_compiler_x86_static.asm
|
src/crypto/randomx/jit_compiler_x86_static.asm
|
||||||
src/crypto/randomx/jit_compiler_x86.cpp
|
src/crypto/randomx/jit_compiler_x86.cpp
|
||||||
)
|
)
|
||||||
elseif (ARCH_ID STREQUAL "x86_64" OR ARCH_ID STREQUAL "x86-64" OR ARCH_ID STREQUAL "amd64" OR ARCH_ID STREQUAL "AMD64")
|
elseif (NOT XMRIG_ARM AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
list(APPEND SOURCES_CRYPTO
|
list(APPEND SOURCES_CRYPTO
|
||||||
src/crypto/randomx/jit_compiler_x86_static.S
|
src/crypto/randomx/jit_compiler_x86_static.S
|
||||||
src/crypto/randomx/jit_compiler_x86.cpp
|
src/crypto/randomx/jit_compiler_x86.cpp
|
||||||
|
|
|
@ -226,6 +226,11 @@ void xmrig::Algorithm::parseVariant(const char *variant)
|
||||||
for (size_t i = 0; i < ARRAY_SIZE(variants); i++) {
|
for (size_t i = 0; i < ARRAY_SIZE(variants); i++) {
|
||||||
if (strcasecmp(variant, variants[i]) == 0) {
|
if (strcasecmp(variant, variants[i]) == 0) {
|
||||||
m_variant = static_cast<Variant>(i);
|
m_variant = static_cast<Variant>(i);
|
||||||
|
|
||||||
|
if (m_variant == VARIANT_RX_WOW || m_variant == VARIANT_RX_LOKI) { // FIXME
|
||||||
|
m_algo = RANDOM_X;
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue