aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/CMakeLists.txt
diff options
context:
space:
mode:
authorwarptangent <warptangent@tutanota.com>2016-02-17 12:10:26 -0800
committerwarptangent <warptangent@tutanota.com>2016-02-17 12:37:15 -0800
commit05e7ac0360ac3a0a945ad69cad48c5a3b5b59acd (patch)
tree92d25b2be3d7c5fa89690926164752412d9fe136 /src/blockchain_utilities/CMakeLists.txt
parentMerge pull request #672 (diff)
downloadmonero-05e7ac0360ac3a0a945ad69cad48c5a3b5b59acd.tar.xz
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.
Diffstat (limited to 'src/blockchain_utilities/CMakeLists.txt')
-rw-r--r--src/blockchain_utilities/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/blockchain_utilities/CMakeLists.txt b/src/blockchain_utilities/CMakeLists.txt
index ad2a5b40a..41c3098a0 100644
--- a/src/blockchain_utilities/CMakeLists.txt
+++ b/src/blockchain_utilities/CMakeLists.txt
@@ -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