this post was submitted on 15 Apr 2025
7 points (100.0% liked)
C & C++
1009 readers
1 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What build system are you using? Ninja is multithreaded by default so it will be ignored but systems like msbuild, Make, xcodebuild, iirc are single threaded by default and you can promote them to multi threaded by using -j or just passing their multithreaded option like
if cmake is actually ignoring the -j flag. If it is you should create a ticket on cmakes gitlab repo
Both make and cmake are ignoring the j option and some of the software compiled with them also run in a single thread when they shouldn't, it seems a system problem, could it be an env variable?