aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/dev.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-12-05 15:01:22 +0100
committerMichael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com>2019-12-05 11:08:12 -0500
commit0cf31e2340c20ecac7934a504be5f2989e90edb4 (patch)
tree2f70e01573e12f6f20ea19aeae464e341a753836 /mesonbuild/dependencies/dev.py
parentf1971fed908f5a6e181e5a864f8177b16587d2de (diff)
downloadmeson-0cf31e2340c20ecac7934a504be5f2989e90edb4.zip
meson-0cf31e2340c20ecac7934a504be5f2989e90edb4.tar.gz
meson-0cf31e2340c20ecac7934a504be5f2989e90edb4.tar.bz2
lgtm: fix Multiple calls to __init__
Some slight refactoring for the dependency classes and I switched the elbrus compiler to the GnuLikeCompiler. This is also the correct use according to the documentation of GnuLikeCompiler.
Diffstat (limited to 'mesonbuild/dependencies/dev.py')
-rw-r--r--mesonbuild/dependencies/dev.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py
index 894bfdc..15907d4 100644
--- a/mesonbuild/dependencies/dev.py
+++ b/mesonbuild/dependencies/dev.py
@@ -25,7 +25,7 @@ from ..mesonlib import version_compare, stringlistify, extract_as_list, MachineC
from ..environment import get_llvm_tool_names
from .base import (
DependencyException, DependencyMethods, ExternalDependency, PkgConfigDependency,
- strip_system_libdirs, ConfigToolDependency, CMakeDependency, HasNativeKwarg
+ strip_system_libdirs, ConfigToolDependency, CMakeDependency
)
from .misc import ThreadDependency
@@ -205,17 +205,13 @@ class LLVMDependencyConfigTool(ConfigToolDependency):
__cpp_blacklist = {'-DNDEBUG'}
def __init__(self, environment, kwargs):
- # Already called by `super().__init__`, but need `self.for_machine`
- # before `super().__init__` is called.
- HasNativeKwarg.__init__(self, kwargs)
-
self.tools = get_llvm_tool_names('llvm-config')
# Fedora starting with Fedora 30 adds a suffix of the number
# of bits in the isa that llvm targets, for example, on x86_64
# and aarch64 the name will be llvm-config-64, on x86 and arm
# it will be llvm-config-32.
- if environment.machines[self.for_machine].is_64_bit:
+ if environment.machines[self.get_for_machine_from_kwargs(kwargs)].is_64_bit:
self.tools.append('llvm-config-64')
else:
self.tools.append('llvm-config-32')