You could also modify the default stack size in your compile settings which will allow you to use larger stacks.
gcc: --stack=reserve, commit
MSVC: /STACK: reserve,commit
reserve is virtual memory size, commit is actual physical size
I couldnt find the clang version but it will be similar to gcc to be honest.
Be careful of messing with these settings because they are set to be small for a reason, large stack sizes will not detected endless recursion fast.