summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/objcpp.py
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-11-10 16:07:57 -0500
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 09:59:13 -0800
commitf09048a23a59aee527ceb3b8b90322adaf3bd577 (patch)
treef3fafb69e628dd5e62b26766708ea682d906f611 /mesonbuild/compilers/objcpp.py
parent18c1ce716b8fe43cce090daa851b64cbbbdbd532 (diff)
downloadmeson-f09048a23a59aee527ceb3b8b90322adaf3bd577.tar.gz
fix parsing cgit paths
Using os.path.basename on a string such as "/foo/bar/" returns an empty string, which breaks on e.g. Cgit git URLs. The fix uses pathlibs Path class "parent" method, which gets the last component of the path, so "bar" for "/foo/bar/".
Diffstat (limited to 'mesonbuild/compilers/objcpp.py')
0 files changed, 0 insertions, 0 deletions