开发者

Coloring compiler diagnostics with SCons

开发者 https://www.devze.com 2023-04-10 07:30 出处:网络
I am currently using the colorama package to color messages generated by my build scripts. I have also used scolorizer, which replaces the build commands with custom, colored messages using strfunctio

I am currently using the colorama package to color messages generated by my build scripts. I have also used scolorizer, which replaces the build commands with custom, colored messages using strfunction() in SCons. This sure makes build output less verbose and warnings easier to spot.

However, I often prefer to see the full command lines when building. Is there a mechanism in SCons to capture compiler output, giving the opportunity to inject some terminal colors befor开发者_Go百科e printing it out?


You can do this by setting CC and CXX in the environment to a suitable wrapper around your compiler, for example colorgcc.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号