Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[filter-build-webkit] Show target names in colored output
https://bugs.webkit.org/show_bug.cgi?id=256052 Reviewed by Alexey Proskuryakov. It's helpful to see which target each line from filter-build-webkit corresponds with, to see at a glance how far the build has progressed. When filter-build-webkit is connected to a terminal, prefix the target name using ANSI colors onto each output line. The target string is colored based on a checksum of the target name and project name. This makes the output lines visually distinguishable (e.g., JavaScriptCore is always the same color), and helps keep the task description readable. We only use ANSI "basic" colors (the first 16, excluding black and white). These colors are set by the user's terminal theme, so it's unlikely that the script will pick a color that is unreadable. When output is not colorized (i.e. when being read by scripts or run in CI), the target name is omitted, to preserve readability of the existing task description. * Tools/Scripts/filter-build-webkit: (main): (printLine): Canonical link: https://commits.webkit.org/263505@main
- Loading branch information
Showing
1 changed file
with
55 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters