mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-30 14:36:00 +00:00
Update donation flags
This commit is contained in:
parent
e702b3e095
commit
05f8b796d1
2 changed files with 10 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,4 +4,5 @@ scripts/deps
|
|||
/CMakeLists.txt.user
|
||||
/.idea
|
||||
/src/backend/opencl/cl/cn/cryptonight_gen.cl
|
||||
/.vscode
|
||||
/.vscode
|
||||
/..bfg-report
|
|
@ -1,6 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.5)
|
||||
project(xmrig)
|
||||
|
||||
option(WITH_DONATION "Enable donation" ON)
|
||||
option(WITH_HWLOC "Enable hwloc support" ON)
|
||||
option(WITH_CN_LITE "Enable CryptoNight-Lite algorithms family" ON)
|
||||
option(WITH_CN_HEAVY "Enable CryptoNight-Heavy algorithms family" ON)
|
||||
|
@ -135,6 +136,13 @@ if (CMAKE_C_COMPILER_ID MATCHES GNU)
|
|||
set_source_files_properties(src/crypto/cn/CnHash.cpp PROPERTIES COMPILE_FLAGS "-Ofast -fno-tree-vectorize")
|
||||
endif()
|
||||
|
||||
if(WITH_DONATION)
|
||||
message("-- Donation state: enabled")
|
||||
else()
|
||||
message("-- Donation state: disabled")
|
||||
add_definitions(-DXMRIG_NO_DONATE)
|
||||
endif()
|
||||
|
||||
if (WITH_VAES)
|
||||
add_definitions(-DXMRIG_VAES)
|
||||
set(HEADERS_CRYPTO "${HEADERS_CRYPTO}" src/crypto/cn/CryptoNight_x86_vaes.h)
|
||||
|
|
Loading…
Reference in a new issue