Open qaqland opened 7 months ago
I'll take a look.
This seems like a rather hard problem to solve.
I guess the difficulty comes from knowing whether the string is a posix path, or a Windows path, or a Windows paths using forward slashes as path separator...
Rethinking about this, the real problem is that backslashes are valid characters in posix paths. Joining paths containing backslashes on a posix system should not convert the backslashes to slashes.
Having a different behavior on Windows and on posix systems is expected, since you are not manipulating the same kind of paths. Why would you want to join Windows paths on a posix system, and vice-versa?
Cross compiling would be one reason.
Why would you want to join Windows paths on a posix system, and vice-versa?
I didn't understand this function in the document at first, and found this bug...
Describe the bug
join_paths() works wrong when meet Windows style absolute path
To Reproduce
meson.build
run meson setup
Expected behavior
it should work as document: https://github.com/mesonbuild/meson/blob/master/docs/markdown/Syntax.md#string-path-building
system parameters