blockchain_import: Check bit width for more than just WIN32
Pass the CMake bit width setting to compile flags for blockchain_import and blockchain_converter. For LMDB on 32-bit, hyc has found that batch size of 100 appears to be a good default.
This commit is contained in:
@@ -99,6 +99,11 @@ target_link_libraries(blockchain_converter
|
||||
blockchain_db
|
||||
${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
if(${ARCH_WIDTH} EQUAL 32)
|
||||
target_compile_definitions(blockchain_converter
|
||||
PUBLIC -DARCH_WIDTH=32)
|
||||
endif()
|
||||
|
||||
add_dependencies(blockchain_converter
|
||||
version)
|
||||
set_property(TARGET blockchain_converter
|
||||
@@ -117,6 +122,11 @@ target_link_libraries(blockchain_import
|
||||
p2p
|
||||
${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
if(${ARCH_WIDTH} EQUAL 32)
|
||||
target_compile_definitions(blockchain_import
|
||||
PUBLIC -DARCH_WIDTH=32)
|
||||
endif()
|
||||
|
||||
add_dependencies(blockchain_import
|
||||
version)
|
||||
set_property(TARGET blockchain_import
|
||||
|
||||
Reference in New Issue
Block a user