Author Topic: Multithread compilation with custom makefile  (Read 3249 times)

tipf

  • Guest
Multithread compilation with custom makefile
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: Multithread compilation with custom makefile
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Multithread compilation with custom makefile
« Reply #2 on: October 01, 2015, 05:21:21 pm »
Or edit the Project settings (tab "Make commands").

tipf

  • Guest
Re: Multithread compilation with custom makefile
« Reply #3 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.