diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-03 17:50:40 -0400 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2023-05-03 20:26:32 -0400 |
| commit | a95ebf10776757664e1c1ad91f662374a31e0133 (patch) | |
| tree | 262b139750c52ef1c569e180b35bf023671a7e8f /mesonbuild/dependencies/python.py | |
| parent | 8d3e22f50b6a66e3880bbd4b4edd620a8349c498 (diff) | |
| download | meson-a95ebf10776757664e1c1ad91f662374a31e0133.tar.gz | |
dependencies: allow config-tool to fallback to default program names
If the dependency permits it, we can just do a PATH search instead of
mandating that it be listed in the cross file. This is useful for the
limited case where a specific dependency is known to be compatible with
any machine choice.
Mark the pybind11 dependency as supporting this. It's a valid choice
because pybind11 is a header-only C++ library.
Diffstat (limited to 'mesonbuild/dependencies/python.py')
| -rw-r--r-- | mesonbuild/dependencies/python.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py index b9fbbbbdc..65fef7f81 100644 --- a/mesonbuild/dependencies/python.py +++ b/mesonbuild/dependencies/python.py @@ -55,6 +55,9 @@ class Pybind11ConfigToolDependency(ConfigToolDependency): tools = ['pybind11-config'] + # any version of the tool is valid, since this is header-only + allow_default_for_cross = True + # pybind11 in 2.10.4 added --version, sanity-check another flag unique to it # in the meantime skip_version = '--pkgconfigdir' |
