From 87bb1aa4d35903a3870e2d1705e37024abc28af0 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sun, 12 Apr 2020 20:37:58 +0700 Subject: [PATCH] #1643 Fixed build on CentOS 7 --- CHANGELOG.md | 1 + cmake/astrobwt.cmake | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b8ada8d0..0cd2e0a1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - [#1605](https://github.com/xmrig/xmrig/pull/1605) Fixed AstroBWT OpenCL for NVIDIA GPUs. - [#1635](https://github.com/xmrig/xmrig/pull/1635) Added pooled memory allocation of RandomX VMs (+0.5% speedup on Zen2). - [#1641](https://github.com/xmrig/xmrig/pull/1641) RandomX JIT refactoring, smaller memory footprint and a bit faster overall. +- [#1643](https://github.com/xmrig/xmrig/issues/1643) Fixed build on CentOS 7. # v5.10.0 - [#1602](https://github.com/xmrig/xmrig/pull/1602) Added AMD GPUs support for AstroBWT algorithm. diff --git a/cmake/astrobwt.cmake b/cmake/astrobwt.cmake index 9ba06e0c4..bef0b62d0 100644 --- a/cmake/astrobwt.cmake +++ b/cmake/astrobwt.cmake @@ -24,11 +24,12 @@ if (WITH_ASTROBWT) ) else() if (CMAKE_SIZEOF_VOID_P EQUAL 8) - enable_language(ASM_MASM) add_definitions(/DASTROBWT_AVX2) if (CMAKE_C_COMPILER_ID MATCHES MSVC) + enable_language(ASM_MASM) list(APPEND SOURCES_CRYPTO src/crypto/astrobwt/sha3_256_avx2.asm) else() + enable_language(ASM) list(APPEND SOURCES_CRYPTO src/crypto/astrobwt/sha3_256_avx2.S) endif() endif()