[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 13:25:17 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350
--- Comment #7 from Bill Zissimopoulos <gnu.org at billz dot fastmail.fm> ---
(In reply to niXman from comment #6)
> > I would use `FILE_NAME_NORMALIZED` and `VOLUME_NAME_DOS`.
>
> together? OR'ed?
>
> or should I try for the first, and for the second one? or...?
Yes, or them together: `FILE_NAME_NORMALIZED | VOLUME_NAME_DOS`.
- `FILE_NAME_NORMALIZED` is needed to actually perform the symbolic link
resolution.
- `VOLUME_NAME_DOS` is needed to translate the internal NT device name to the
familiar Win32 drives (X:). This may fail with `ERROR_UNRECOGNIZED_VOLUME`
which is why I recommended to use GetFullPathName as a fallback mechanism.
More information about the Gcc-bugs
mailing list