aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-03-01 12:46:02 -0800
committerDylan Baker <dylan@pnwbakers.com>2022-03-03 10:30:31 -0800
commitbcf924dc7b7eebfdca83e74da400a060b6be4319 (patch)
tree799b8d786f2e66cd24459967191bb28c01626efc /mesonbuild/build.py
parent5e89953dbb116c61944aa7e300c37a60c6fa07e3 (diff)
downloadmeson-bcf924dc7b7eebfdca83e74da400a060b6be4319.zip
meson-bcf924dc7b7eebfdca83e74da400a060b6be4319.tar.gz
meson-bcf924dc7b7eebfdca83e74da400a060b6be4319.tar.bz2
interpreter: annotate the find_program chain
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index b9a3dc2..bd6661b 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -255,7 +255,7 @@ class Build:
self.test_setups: T.Dict[str, TestSetup] = {}
self.test_setup_default_name = None
self.find_overrides: T.Dict[str, T.Union['Executable', programs.ExternalProgram, programs.OverrideProgram]] = {}
- self.searched_programs = set() # The list of all programs that have been searched for.
+ self.searched_programs: T.Set[str] = set() # The list of all programs that have been searched for.
# If we are doing a cross build we need two caches, if we're doing a
# build == host compilation the both caches should point to the same place.
@@ -292,7 +292,7 @@ class Build:
for k, v in other.__dict__.items():
self.__dict__[k] = v
- def ensure_static_linker(self, compiler):
+ def ensure_static_linker(self, compiler: Compiler) -> None:
if self.static_linker[compiler.for_machine] is None and compiler.needs_static_linker():
self.static_linker[compiler.for_machine] = detect_static_linker(self.environment, compiler)