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 communitycmake
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 eosio-ld
)
add_contract(test test test.cpp)
target_link_options(test PUBLIC -stack-size=8192)
target_compile_options(test PUBLIC -finline-functions)
for them. My ID is conr"2"d, not conrad, haha.