URL: <https://savannah.gnu.org/bugs/?63429>
Summary: Escape sequence in logs are lost with -O option Project: make Submitter: masahiroy Submitted: Sun 27 Nov 2022 02:32:02 AM UTC Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: None Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sun 27 Nov 2022 02:32:02 AM UTC By: Masahiro Yamada <masahiroy> While the -O option buffering the logs, the escape sequences for colors are lost. [Sample Makefile] all: test.txt grep --color=auto foo $< test.txt: @echo foobar > $@ [Test without -O] $ make grep --color=auto foo test.txt foobar In my environment, the part "foo" is highlighted in color. [Test with -O] $ make -j2 -O grep --color=auto foo test.txt foobar The part "foo" is not highlighted any more. Recent compilers show warnings/errors in color, but they are lost with the -O option. Can we do this better? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63429> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/