News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Multithread compilation with custom makefile

Started by tipf, October 01, 2015, 02:14:02 PM

Previous topic - Next topic

tipf

Hi,
I'm using Code::Blocks svn build 10122 on Ubuntu with a project file that is generated with CMake. I compile with the 'custom makefile' option. Is there a possibility to activate multi-thread compilation?
I tried settings->compiler->Build options->Number of processes for parallel builds, but it doesn't worked(which mean just one thread is used). Compiling manually with 'make -j4'  works as expected.

Best regards,
Tim

stahta01

Quote from: tipf on October 01, 2015, 02:14:02 PM
Hi,
I'm using Code::Blocks svn build 10122 on Ubuntu with a project file that is generated with CMake. I compile with the 'custom makefile' option. Is there a possibility to activate multi-thread compilation?
I tried settings->compiler->Build options->Number of processes for parallel builds, but it doesn't worked(which mean just one thread is used). Compiling manually with 'make -j4'  works as expected.

Best regards,
Tim

Edit the toolchain setting for the make command.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

Or edit the Project settings (tab "Make commands").

tipf

Quote from: jens on October 01, 2015, 05:21:21 PM
Or edit the Project settings (tab "Make commands").

Thank you, that was the point. The toolchain option had no effect because the build options used '/usr/bin/make' instead of the global $make variable.