Open heinrich5991 opened 2 weeks ago
I feel like the README isn't the right place for educating the user about make
parameters. If we want the user to get a faster build, we should provide instructions for ninja
instead. Should I change the instructions to ninja
?
You can pass -j
to cmake --build as well, and it should do the right thing.
Actually, -j$(nproc)
is still necessary, otherwise that is literally what it passes through to make, and it will basically fork bomb you.
(make -j<empty>
means "spawn unlimited processes")
I think it's okay to put cmake -Bbuild -j$(nproc)
in the readme, then even the users who copy paste mindless get faster builds, regardless of generator used.
I think it's okay to put
cmake -Bbuild -j$(nproc)
in the readme, then even the users who copy paste mindless get faster builds, regardless of generator used.
Then we can also just include ninja
in the requirements and add -GNinja
.
Also remove the
-j$(nproc)
parameter, if the user wants to fast, they should useninja
.Checklist