aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-01-10 15:10:09 +0100
committerEli Schwartz <eschwartz93@gmail.com>2025-03-09 13:05:08 -0400
commit528696300afd3236e173242e1e09d1ac80dfec81 (patch)
treef3989f6d6c49e188201719dd13468e10128a755d /docs/markdown/snippets
parent9c125a26dbf1b6ecc674df2bd1abc02ca48da2cd (diff)
downloadmeson-528696300afd3236e173242e1e09d1ac80dfec81.zip
meson-528696300afd3236e173242e1e09d1ac80dfec81.tar.gz
meson-528696300afd3236e173242e1e09d1ac80dfec81.tar.bz2
mesonlib: extract and optimize is_parent_path
Introduce an alternative to os.path.commonpath(name, path) == path, which is a common idiom throughout Meson. Call it is_parent_path just like the existing static method in Generator. It is a bit faster and handles drives on Windows without the need for an exception handler. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/snippets')
0 files changed, 0 insertions, 0 deletions