I am working on a shell script for calling the Ninja c / C ++ assembly, the script is in python, and one thing that it should do is register the output from Ninja and the main compiler, but without suppressing the standard output.
The part that causes me problems is that Ninja seems to detect that she writes the terminal or not, so just catching the output and sending it to the standard output finishes changing it (first of all, Ninja does not fill the list screen warning and erroneous files, but deletes the line of the last successfully integrated translation unit, because it is included in the new one). Is there a way to let the ninja write to the terminal while maintaining its output? Recording to the terminal should be performed during the Ninja subprocess, but capturing the specified output may wait for the subprocess to complete.
source
share