How to make compilation single threaded in QMake?
-
I know that you can add -j1 flag to make, but how can you do it in QMake? Long time ago there was a variable MAKEFLAGS but now there're hundreds of different variables instead: https://doc.qt.io/qt-5/qmake-variable-reference.html
I tried to add this flag to QMAKE_LFLAGS, to QMAKE_CXXFLAGS and so on, it didn't help, I still got this line in compile output
15:23:29: Starting: "/usr/bin/make" -j2
-
Neither qmake or cmake can do something wrt this in their config files.
-
Hi,
It looks like you are using Qt Creator, it's there that you should put that configuration.
-
C Christian Ehrlicher moved this topic from General and Desktop on
-
Hi,
It looks like you are using Qt Creator, it's there that you should put that configuration.
-
You can set the number of parallel jobs in the project settings of your project (under build settings)