aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-03-02 11:11:17 -0800
committerDylan Baker <dylan@pnwbakers.com>2020-03-05 09:31:29 -0800
commita8293dd59c0a22817f2336df8ae97dce1232f72a (patch)
tree123b316ad1bf34c52f75c29d05e8b94ab05d52be /mesonbuild/compilers/compilers.py
parent1a82880730e2d9f58eaa67179aa40c6976835278 (diff)
downloadmeson-a8293dd59c0a22817f2336df8ae97dce1232f72a.zip
meson-a8293dd59c0a22817f2336df8ae97dce1232f72a.tar.gz
meson-a8293dd59c0a22817f2336df8ae97dce1232f72a.tar.bz2
mesonlib: Replace unholder argument to listify
listify shouldn't be unholdering, it's a function to turn scalar values into lists, or flatten lists. Having a separate function is clearer, easier to understand, and can be run recursively if necessary.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 1c0adff..caa8600 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -35,6 +35,8 @@ if T.TYPE_CHECKING:
from ..environment import Environment
from ..linkers import DynamicLinker # noqa: F401
+ CompilerType = T.TypeVar('CompilerType', bound=Compiler)
+
"""This file contains the data files of all compilers Meson knows
about. To support a new compiler, add its information below.
Also add corresponding autodetection code in environment.py."""