Re: [PATCH] ld: testsuite: Fix a few backslash-related issues on MinGW.
Jan Beulich <[email protected]> Fri, 17 Jul 2026 14:51:21 +0200
| Newsgroups | gmane.comp.gnu.binutils |
|---|---|
| Message-ID | <[email protected]> |
On 17.07.2026 14:33, Jan Dubiec wrote: > On 17.07.2026 12:59, Jan Beulich wrote: > [...]> Yet: Does it need to? If slashes work, can't ld simply use slashes? > Don't ask me — I wasn't involved in porting the GNU tools to > Windows/MinGW. :-) > > In any case, the tools built with MinGW are native Windows executables. > They use the WinAPI directly, without a compatibility layer such as > Cygwin. As a result, they can be invoked either from a Unix-like shell > or from the rather crappy native Windows shell, cmd.exe, which doesn't > always handle forward slashes gracefully. So I would say that it is > quite common that these tools mix backward and forward slashes. But you're making testsuite adjustments. There's no cmd.exe shell involved there, I don't think. Clearly with the many slashes in the paths that you quoted, one more slash won't break things? Jan