Increase stack size with Xcode

I developed a command line application for Linux that requires an increase in its stack. On Linux, I just used a workaround: ulimit -s unlimited before running the program. On Mac OS X, on the command line with g ++, I add to the compilation options:

 -Wl,-stack_size,0x10000000 

and it works.

Now I am developing this program using XCODE, where should I add this option?

+4
source share
1 answer

In the project window:

Goals> [Your Goal]> Information> Build> Other Linker Flags> [Your Flags]

+4
source

All Articles