craftr-build / craftr-build-4.x

Frontend for the Craftr build framework.
https://craftr-build.github.io/craftr/
Other
60 stars 14 forks source link

Make craftr print to stderr #187

Open lukasstevens opened 7 years ago

lukasstevens commented 7 years ago

I want to be able to specify to which output stream craftr prints the build output. This has the following reason: If you use runtargets which execute your program and the program writes to stdout, then it is not possible to separate the program output from the build output cleanly.

NiklasRosenstein commented 7 years ago

There seems to be no option in Ninja to tell it to output everything to stderr except for the output of one specific target (or the targets in the console pool, which is the case for targets created with runtarget()). I could simply redirect all of Ninja's output to stderr, but unfortunately that will also direct the output of the runtarget() to stderr.

The Ninja developers are open to suggestions. Maybe they agree that such an option would be useful.