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.
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to