[cfe-dev] Colorized compiler errors
clattner at apple.com
Sat Dec 22 12:30:26 PST 2007
On Dec 22, 2007, at 11:08 AM, Keith Bauer wrote:
>> And how will you solve it in a portable manner?
> #if !defined(_WIN32) // ideally a more robust configure-based test
> if (isatty(STDOUT_FILENO))
A portable way to do this is to use
llvm::sys::Process::StandardOutIsDisplayed(), which is implemented in
terms of isatty on unix and does the right thing on win32.
More information about the cfe-dev