User forums > Using Code::Blocks
Multithread compilation with custom makefile
(1/1)
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
--- End quote ---
Edit the toolchain setting for the make command.
Tim S.
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").
--- End quote ---
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.
Navigation
[0] Message Index
Go to full version