diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-11 20:01:56 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-19 15:19:00 -0400 |
commit | d3dac3cfb255e1f6f018c4cd3fcbd04706b3c16e (patch) | |
tree | 397885595ef420c69e2ba80ed8563e078f21f18d /unittests/linuxliketests.py | |
parent | 5bfab845d0bc2414e5323d2a59d6c357808c02ea (diff) | |
download | meson-d3dac3cfb255e1f6f018c4cd3fcbd04706b3c16e.zip meson-d3dac3cfb255e1f6f018c4cd3fcbd04706b3c16e.tar.gz meson-d3dac3cfb255e1f6f018c4cd3fcbd04706b3c16e.tar.bz2 |
compilers: don't export every compiler as a top-level property
This is wasteful and generally unneeded, since code can just use the
compiler they detected instead of manually poking at the internals of
this subpackage.
It also avoids importing an absolute ton of code the instant one runs
`from . import compilers`
Diffstat (limited to 'unittests/linuxliketests.py')
-rw-r--r-- | unittests/linuxliketests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unittests/linuxliketests.py b/unittests/linuxliketests.py index d7d657d..69e4c6f 100644 --- a/unittests/linuxliketests.py +++ b/unittests/linuxliketests.py @@ -40,9 +40,11 @@ from mesonbuild.mesonlib import ( ) from mesonbuild.compilers import ( detect_c_compiler, detect_cpp_compiler, compiler_from_language, - AppleClangCCompiler, AppleClangCPPCompiler, AppleClangObjCCompiler, - AppleClangObjCPPCompiler ) +from mesonbuild.compilers.c import AppleClangCCompiler +from mesonbuild.compilers.cpp import AppleClangCPPCompiler +from mesonbuild.compilers.objc import AppleClangObjCCompiler +from mesonbuild.compilers.objcpp import AppleClangObjCPPCompiler from mesonbuild.dependencies import PkgConfigDependency import mesonbuild.modules.pkgconfig |