aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2023-07-12 18:15:27 -0500
committerTristan Partin <tristan@partin.io>2023-07-12 18:56:06 -0500
commit24edddb412dfa6cbf48d1c31b73d4d4903aa0fa0 (patch)
treeefa442620e0d259914b04dc1ea8743169439e302 /mesonbuild/compilers/compilers.py
parentffa54835642e2be849c7203f9cba831dde1e1c00 (diff)
downloadmeson-24edddb412dfa6cbf48d1c31b73d4d4903aa0fa0.zip
meson-24edddb412dfa6cbf48d1c31b73d4d4903aa0fa0.tar.gz
meson-24edddb412dfa6cbf48d1c31b73d4d4903aa0fa0.tar.bz2
Fix return type of debugfile functions
It was returning None in some cases while being marked as returning string.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 4cbdb1f..cb8eae5 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -921,7 +921,7 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
def get_compile_debugfile_args(self, rel_obj: str, pch: bool = False) -> T.List[str]:
return []
- def get_link_debugfile_name(self, targetfile: str) -> str:
+ def get_link_debugfile_name(self, targetfile: str) -> T.Optional[str]:
return self.linker.get_debugfile_name(targetfile)
def get_link_debugfile_args(self, targetfile: str) -> T.List[str]: