tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] RFC: Colored warnings/errors ?


From: Nicolas Sauzede
Subject: [Tinycc-devel] RFC: Colored warnings/errors ?
Date: Sun, 12 May 2024 01:35:14 +0200

Hi,

I created a very simple mob branch to color warnings/errors output, just like GCC and Clang.

    $ git fetch origin refs/mob/mob_nsauzede/colored_warning_error:colored_warning_error
    $ git checkout colored_warning_error

I tested it successfully on Linux (Arch) and Windows (MSYS2, 64 bits GCC bootstrap)
It uses `isatty(2)` (unistd.h) to detect if the output should be colored (default) or not (eg: piped to a file) to behave like GCC and Clang.

What do you think ?

BR,
NS.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]