Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the amount of building threads in Xcode?

Tags:

People also ask

What is incremental build Xcode?

'Incremental' says to compile only the files that are modified and 'Whole module' denotes to build all files in the project irrespective of the changes made. Action Points. 1. Goto 'Compilation Mode' in build settings. By default, Xcode 10 should have set it to 'Incremental' for Debug and 'Whole Module' for Release.

What is Xcode build system?

The Xcode build system manages the tools that transform your code and resource files into a finished app. When you tell Xcode to build your project, the build system analyzes your files and uses your project settings to assemble the set of tasks to perform.


I'm building a couple of C++ files in xcode that take a lot of memory to compile (+1 GB / file). Because I do this on my dual core laptop, xcode uses 2 threads for building. The two threads will eventually be building the files that take a lot of memory simultaneously so the system suffers memory starvation and the compilation grinds to a near halt.

A sufficient solution for me would be to force Xcode to use only one build thread. Does anybody know a way to change how many build threads Xcode uses?

For those who are interested, the C++ files contain a sizable boost::spirit::qi parser.