Ninja: Difference between revisions

From Bitpost wiki
(Created page with "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+' * Upda...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
  cmake -GNinja -static '+cmake_options+'
  cmake -GNinja -static '+cmake_options+'
* Update your build script to use ninja instead of 'make -j#'
* 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.
* Change all your configs to point to this new location
** visual studio code launch.json gdb launch program
** etc.
Can I go back to gcc yet?

Latest revision as of 13:09, 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.
  • Change all your configs to point to this new location
    • visual studio code launch.json gdb launch program
    • etc.

Can I go back to gcc yet?