How can i override default make parameters , which is:
make -w
Each time i create a project , i had to modify project settings , adding -j4
to make parameters.
Can i set make -w -j4
by default ?
The best way to do this is setting MAKEFLAGS environment variable , i'm picking the only answer as the best only to shut this thread down.
To set this for UNIX, modify the *.desktop file of Qt Creator , prefix the line entitled Exec=
with env MAKEFLAGS=-j4
, but be aware that you won't be able to cease building in QtCreator immediately after setting to multithread.
You can edit existing environment variables or add, reset and unset new variables based on your project requirements. To globally change the system environment from the one in which Qt Creator is started, select Edit > Preferences > Environment > System, and then select Change in the Environment field.
On Windows in general, the files are located in %APPDATA%\QtProject and %LOCALAPPDATA%\QtProject .
Also recently, newer versions of Qt have another little button on the right hand side of the "build directory" input field. It is has like a blue arrow on mine. Click it and you can view all the global build variables.
To make it global and permanent go to
Tools > Options > Build & Run > Kits > (pick your toolchain)
and fill your predefined env settings: MAKEFLAGS=-j4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With