diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-11 23:03:43 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-19 15:19:00 -0400 |
commit | cc5ef6478ffe871eda6ad90f21d8e9d05613101d (patch) | |
tree | 98d5799aeaf2bd5a4bdea0b71d14df06522b62c9 /mesonbuild/dependencies/dub.py | |
parent | f6f876481f84867ba4150967c8966dcc29df6358 (diff) | |
download | meson-cc5ef6478ffe871eda6ad90f21d8e9d05613101d.zip meson-cc5ef6478ffe871eda6ad90f21d8e9d05613101d.tar.gz meson-cc5ef6478ffe871eda6ad90f21d8e9d05613101d.tar.bz2 |
compilers: perform targeted imports for detect
Only import the ones we need for the language we are detecting, once we
actually detect that language.
This will allow finally dropping the main imports of these files in a
followup commit.
Diffstat (limited to 'mesonbuild/dependencies/dub.py')
-rw-r--r-- | mesonbuild/dependencies/dub.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/dub.py b/mesonbuild/dependencies/dub.py index cad4aad..8821e2c 100644 --- a/mesonbuild/dependencies/dub.py +++ b/mesonbuild/dependencies/dub.py @@ -17,7 +17,6 @@ from .pkgconfig import PkgConfigDependency from ..mesonlib import (Popen_safe, OptionKey) from ..mesonlib.universal import join_args from ..programs import ExternalProgram -from ..compilers.d import DCompiler, d_feature_args from .. import mlog import re import os @@ -33,6 +32,7 @@ class DubDependency(ExternalDependency): def __init__(self, name: str, environment: 'Environment', kwargs: T.Dict[str, T.Any]): super().__init__(DependencyTypeName('dub'), environment, kwargs, language='d') self.name = name + from ..compilers.d import DCompiler, d_feature_args _temp_comp = super().get_compiler() assert isinstance(_temp_comp, DCompiler) |