I'm typically using CMake to compile my contracts, like described here.
How can I pass specific eosio-cpp/eosio-ld options (specifically -stack-size) described here?
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.Sign up to join this community
cmake will compile source files into object files first and link them by linker, so you need to add
-stack-size option to linker option. (When you run
eosio-cpp in command-line, passing
-stack-size to compile options is allowed, because
eosio-cpp will pass linker options to
add_contract(test test test.cpp) target_link_options(test PUBLIC -stack-size=8192)