mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
build: default to Berkeley DB for 32 bit and ARM
This commit is contained in:
parent
791d8cb038
commit
180bcde866
2 changed files with 10 additions and 1 deletions
|
@ -216,8 +216,17 @@ if (DATABASE STREQUAL "lmdb")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (BERKELEY_DB AND (ARCH_WIDTH STREQUAL "32" OR ARM6 OR ARM7))
|
||||||
|
message(STATUS "Using Berkeley DB as default DB type")
|
||||||
|
add_definitions("-DDEFAULT_DB_TYPE=\"berkeley\"")
|
||||||
|
else()
|
||||||
|
message(STATUS "Using LMDB as default DB type")
|
||||||
|
add_definitions("-DDEFAULT_DB_TYPE=\"lmdb\"")
|
||||||
|
endif()
|
||||||
elseif (DATABASE STREQUAL "memory")
|
elseif (DATABASE STREQUAL "memory")
|
||||||
set(BLOCKCHAIN_DB DB_MEMORY)
|
set(BLOCKCHAIN_DB DB_MEMORY)
|
||||||
|
add_definitions("-DDEFAULT_DB_TYPE=\"memory\"")
|
||||||
else()
|
else()
|
||||||
die("Invalid database type: ${DATABASE}")
|
die("Invalid database type: ${DATABASE}")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -73,7 +73,7 @@ namespace daemon_args
|
||||||
const command_line::arg_descriptor<std::string> arg_db_type = {
|
const command_line::arg_descriptor<std::string> arg_db_type = {
|
||||||
"db-type"
|
"db-type"
|
||||||
, "Specify database type"
|
, "Specify database type"
|
||||||
, "lmdb"
|
, DEFAULT_DB_TYPE
|
||||||
};
|
};
|
||||||
const command_line::arg_descriptor<uint64_t> arg_prep_blocks_threads = {
|
const command_line::arg_descriptor<uint64_t> arg_prep_blocks_threads = {
|
||||||
"prep-blocks-threads"
|
"prep-blocks-threads"
|
||||||
|
|
Loading…
Reference in a new issue