diff options
author | Akihiko Odaki <akihiko.odaki@gmail.com> | 2022-06-18 20:57:44 +0900 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-06-26 17:18:26 -0400 |
commit | c2c9359d466e545799aebaa2b6c6e353f5f5c833 (patch) | |
tree | fb99ff92a5a3599897427b8463b62d48152fd543 /mesonbuild/environment.py | |
parent | 4c706e961bcef8c2f4445eb4a24e3e6b2c86bbab (diff) | |
download | meson-c2c9359d466e545799aebaa2b6c6e353f5f5c833.zip meson-c2c9359d466e545799aebaa2b6c6e353f5f5c833.tar.gz meson-c2c9359d466e545799aebaa2b6c6e353f5f5c833.tar.bz2 |
Fix destdir_join
The old implementation assumed a path is of Windows iff the second
character is a colon. However, that is not always true.
First, a colon can be included in a non-Windows path. For example, it is
totally fine to have a directory named ':' on Linux 5.17.0 tmpfs.
Second, a Windows path may start with \\ for UNC or extended length.
Use pathlib to handle all of these cases.
Diffstat (limited to 'mesonbuild/environment.py')
0 files changed, 0 insertions, 0 deletions