Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: tipf on October 01, 2015, 02:14:02 pm

Title: Multithread compilation with custom makefile
Post by: 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
Title: Re: Multithread compilation with custom makefile
Post by: stahta01 on October 01, 2015, 05:15:18 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.
Title: Re: Multithread compilation with custom makefile
Post by: Jenna on October 01, 2015, 05:21:21 pm
Or edit the Project settings (tab "Make commands").
Title: Re: Multithread compilation with custom makefile
Post by: tipf on October 02, 2015, 11:01:56 am
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.