Why doesn't clang show color output under Scons?
问题 When building with Scons, I can configure it to use clang like so: env["CXX"] = "clang++" However, it doesn't seem to preserve the color information that clang outputs. How can I make scons preserve the color? 回答1: According to the clang documentation, color is enabled only when a color-capable terminal is detected . SCons doesn't automatically pass on all environment variables to the process that runs the compiler, you have pass them explicitly. And TERM is not passed on to clang. Add the