How to capture the compiler output

于 <[email protected]> Mon, 29 Jul 2024 22:19:04 +0800 (GMT+08:00)
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
Hi Guys,


‍I want to capture the compiler output, to get the warning and error counter.
‍I think I can redefinite the sys.write.stdout. So I did. And I can capture the scons command line, but I can't get compiler output(warning&error).
‍Then I find that compiler warning and error are print via sys.write.stderr, so I modify compiler argument, print all of compiler output via sys.write.stdout. But I can't get warning and error also.
I know scons call compiler via subprocess, subprocess can get compiler output. But scons don't save compiler output.
How can I capture compiler warning and error output via scons.

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users