Skip to content

Commit

Permalink
Try to fix MinGW build with -Wa,-mbig-obj
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore committed Mar 22, 2023
1 parent 2810919 commit f69da5a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion libraries/wallet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,18 @@ target_link_libraries( graphene_wallet PRIVATE graphene_app graphene_chain graph
${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} )
target_include_directories( graphene_db PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )

set( GRAPHENE_WALLET_BIG_FILES
wallet_api_impl.cpp
wallet_committee.cpp
wallet.cpp
)

if(MSVC)
set_source_files_properties( wallet.cpp PROPERTIES COMPILE_FLAGS "/bigobj" )
set_source_files_properties( ${GRAPHENE_WALLET_BIG_FILES} PROPERTIES COMPILE_FLAGS "/bigobj" )
else( MSVC )
if( MINGW )
set_source_files_properties( ${GRAPHENE_WALLET_BIG_FILES} PROPERTIES COMPILE_FLAGS -Wa,-mbig-obj )
endif( MINGW )
endif(MSVC)

install( TARGETS
Expand Down

0 comments on commit f69da5a

Please sign in to comment.