[Bug driver/108350] Windows: invoking gcc via symlink does not work

gnu.org at billz dot fastmail.fm gcc-bugzilla@gcc.gnu.org
Tue Jan 10 12:27:45 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350

--- Comment #2 from Bill Zissimopoulos <gnu.org at billz dot fastmail.fm> ---
(In reply to niXman from comment #1)
> > The most straightforward fix is to change `lrealpath` to use
> > `GetFinalPathNameByHandle` instead of `GetFullPathName`.
> 
> thanks for the investigation!
> will do it now.

Thank you!

FYI `GetFinalPathNameByHandle` is known to fail on drives that are created via
`DefineDosDevice` (e.g. via the SUBST command). So I recommend using
`GetFullPathName` as a fallback if you find that `GetFinalPathNameByHandle`
fails.


More information about the Gcc-bugs mailing list