aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/visualstudio.py
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2023-07-12 17:56:18 -0500
committerTristan Partin <tristan@partin.io>2023-07-12 18:56:06 -0500
commit33c8362a1cdd57dd60c7be8fdf3b0566ccdeb3bf (patch)
tree441f9e319ee99b27bc1c051e204923cf57488892 /mesonbuild/compilers/mixins/visualstudio.py
parentdc692d98fc48f8d5c6ea528adc6dce481412b02f (diff)
downloadmeson-33c8362a1cdd57dd60c7be8fdf3b0566ccdeb3bf.zip
meson-33c8362a1cdd57dd60c7be8fdf3b0566ccdeb3bf.tar.gz
meson-33c8362a1cdd57dd60c7be8fdf3b0566ccdeb3bf.tar.bz2
Match the method signatures of parent classes
Names and types of some methods did not match their parent methods.
Diffstat (limited to 'mesonbuild/compilers/mixins/visualstudio.py')
-rw-r--r--mesonbuild/compilers/mixins/visualstudio.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py
index 54a95bb..24f1132 100644
--- a/mesonbuild/compilers/mixins/visualstudio.py
+++ b/mesonbuild/compilers/mixins/visualstudio.py
@@ -147,8 +147,8 @@ class VisualStudioLikeCompiler(Compiler, metaclass=abc.ABCMeta):
def get_pch_suffix(self) -> str:
return 'pch'
- def get_pch_name(self, header: str) -> str:
- chopped = os.path.basename(header).split('.')[:-1]
+ def get_pch_name(self, name: str) -> str:
+ chopped = os.path.basename(name).split('.')[:-1]
chopped.append(self.get_pch_suffix())
pchname = '.'.join(chopped)
return pchname
@@ -181,12 +181,12 @@ class VisualStudioLikeCompiler(Compiler, metaclass=abc.ABCMeta):
raise mesonlib.MesonException('VS only supports address sanitizer at the moment.')
return ['/fsanitize=address']
- def get_output_args(self, target: str) -> T.List[str]:
+ def get_output_args(self, outputname: str) -> T.List[str]:
if self.mode == CompileCheckMode.PREPROCESS:
- return ['/Fi' + target]
- if target.endswith('.exe'):
- return ['/Fe' + target]
- return ['/Fo' + target]
+ return ['/Fi' + outputname]
+ if outputname.endswith('.exe'):
+ return ['/Fe' + outputname]
+ return ['/Fo' + outputname]
def get_buildtype_args(self, buildtype: str) -> T.List[str]:
return []