diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-10-04 14:21:50 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-16 08:51:11 -0700 |
| commit | db6b15b67023ef4173c87345f1a7d06d22536dd4 (patch) | |
| tree | e8329f4136df04ae66f53176f98f88d85bec7036 /mesonbuild/dependencies | |
| parent | 3979531f160f32453365781200302066bc2f40f9 (diff) | |
| download | meson-db6b15b67023ef4173c87345f1a7d06d22536dd4.tar.gz | |
intro: compute meson_variables for dependencies at setup time
Another place where the interpreter is accessed surreptitiously is
dependency introspection, which looks at the variables. Do that
at setup time instead while the interpreter is alive.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/dependencies')
| -rw-r--r-- | mesonbuild/dependencies/base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 72dbfdf2d..01175291e 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -128,6 +128,7 @@ class Dependency(HoldableObject): self.d_features: T.DefaultDict[str, T.List[T.Any]] = collections.defaultdict(list) self.featurechecks: T.List['FeatureCheckBase'] = [] self.feature_since: T.Optional[T.Tuple[str, str]] = None + self.meson_variables: T.List[str] = [] def __eq__(self, other: object) -> bool: if not isinstance(other, Dependency): |
