aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/islinker.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/mixins/islinker.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/mixins/islinker.py')
-rw-r--r--mesonbuild/compilers/mixins/islinker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/mixins/islinker.py b/mesonbuild/compilers/mixins/islinker.py
index 711e3e3..cfdd746 100644
--- a/mesonbuild/compilers/mixins/islinker.py
+++ b/mesonbuild/compilers/mixins/islinker.py
@@ -120,8 +120,8 @@ class BasicLinkerIsCompilerMixin(Compiler):
def get_buildtype_linker_args(self, buildtype: str) -> T.List[str]:
return []
- def get_link_debugfile_name(self, targetfile: str) -> str:
- return ''
+ def get_link_debugfile_name(self, targetfile: str) -> T.Optional[str]:
+ return None
def thread_flags(self, env: 'Environment') -> T.List[str]:
return []