-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework gcc diagnostic color patch #15036
Conversation
Not sure why CI failed, error doesn't look like its related to my changes (and local compile works)
|
Yes, the issue had been fixed in this upstream commit https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=902c755930326cb4405672aa3ea13c35c653cbff. Please make sure it can be applied in current gcc version. |
Are you suggesting I should apply the linked commit as a new patch? Shouldn't that be done in a separate PR? |
Agree, that would be better. |
I'll look into that. |
The backport doesn't help. Not sure. |
lh_mouse shared a sed command here https://gcc.gnu.org/pipermail/gcc-patches/2023-January/609514.html. Can you try that? |
thanks, I got help on IRC -> #15045 |
Reworked the patch based on method described here -> BurntSushi/ripgrep#94 (comment)
(its mentioned that
GetFileInformationByHandleEx
wont work for this in Windows XP as opposed toNtQueryObject
, but I'm guessing thats not something to consider anymore anyway)I'm not sure if the check for
\cygwin
is necessary, its mentioned in the above linked thread so I included it to be safe, but none of the ttys I tested resolved to that name, maybe its from old mintty versions?Probably fixes #14087 and #8600, I tested it on my system (Win7 x64) and diagnostic output is coloured again by default.