summaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/dev.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-10-24 09:14:25 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-12-17 14:47:18 -0800
commitcd6824aaaec9eb4fd76bfd2ab7e8410f6c571c47 (patch)
treed1042171ea45d1cbd95026717e690726a7d33f59 /mesonbuild/dependencies/dev.py
parent0e04fcc664f1817d486156c6a149142ba4bc472e (diff)
downloadmeson-cd6824aaaec9eb4fd76bfd2ab7e8410f6c571c47.tar.gz
dependencies: Move type_name to class level
This is really class constant for all dependencies, and by taking it out of the initializer we make the `__init__` call have a more consistent interface.
Diffstat (limited to 'mesonbuild/dependencies/dev.py')
-rw-r--r--mesonbuild/dependencies/dev.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py
index 4d219a589..6b6e13000 100644
--- a/mesonbuild/dependencies/dev.py
+++ b/mesonbuild/dependencies/dev.py
@@ -17,7 +17,7 @@ from mesonbuild.interpreterbase.decorators import FeatureDeprecated
from .. import mesonlib, mlog
from ..tooldetect import get_llvm_tool_names
from ..mesonlib import version_compare, version_compare_many, search_version
-from .base import DependencyException, DependencyMethods, detect_compiler, strip_system_includedirs, strip_system_libdirs, SystemDependency, ExternalDependency, DependencyTypeName
+from .base import DependencyException, DependencyMethods, detect_compiler, strip_system_includedirs, strip_system_libdirs, SystemDependency, ExternalDependency
from .cmake import CMakeDependency
from .configtool import ConfigToolDependency
from .detect import packages
@@ -390,7 +390,7 @@ class LLVMDependencyCMake(CMakeDependency):
compilers = env.coredata.compilers[for_machine]
if not compilers or not {'c', 'cpp'}.issubset(compilers):
# Initialize basic variables
- ExternalDependency.__init__(self, DependencyTypeName('cmake'), env, kwargs)
+ ExternalDependency.__init__(self, env, kwargs)
# Initialize CMake specific variables
self.found_modules: T.List[str] = []