Ninja: Difference between revisions
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
* Update your build script to build out-of-source, so that stupid ninja paths are absolute, so that stupid visual studio code can navigate to build errors. yes this is the current best solution. the world sucks. | * Update your build script to build out-of-source, so that stupid ninja paths are absolute, so that stupid visual studio code can navigate to build errors. yes this is the current best solution. the world sucks. | ||
* Learn about CMake complex dependency rules so you can force ninja to build multiple modules in parallel | * Learn about CMake complex dependency rules so you can force ninja to build multiple modules in parallel | ||
Can I go back to gcc yet? |
Revision as of 10:55, 31 July 2019
Ninja is a simpler faster replacement for GNU make.
- Update your call to cmake to include an option to force ninja format, eg:
cmake -GNinja -static '+cmake_options+'
- Update your build script to use ninja instead of 'make -j#'
- Update your build script to build out-of-source, so that stupid ninja paths are absolute, so that stupid visual studio code can navigate to build errors. yes this is the current best solution. the world sucks.
- Learn about CMake complex dependency rules so you can force ninja to build multiple modules in parallel
Can I go back to gcc yet?