mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.3k stars 1.52k forks source link

Do not replace backslashes when joining posix path #13172

Open bruchar1 opened 2 weeks ago

bruchar1 commented 2 weeks ago

Fixes https://github.com/mesonbuild/meson/issues/13130

Backslashes are valid characters in posix paths. Therefore, we should not replace them when the build machine uses a posix filesystem.

A test was added to illustrate the difference of behavior when joining Windows-like paths on Windows and on other systems.

tristan957 commented 2 weeks ago

Related https://github.com/mesonbuild/meson/pull/12097

tristan957 commented 2 weeks ago

cc @xclaesse