diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index 365421e100f8..be9bf11d2bd4 100644 --- a/mesonbuild/compilers/mixins/visualstudio.py +++ b/mesonbuild/compilers/mixins/visualstudio.py @@ -171,7 +171,8 @@ def sanitizer_compile_args(self, target: T.Optional[BuildTarget], value: T.List[ def get_output_args(self, outputname: str) -> T.List[str]: if self.mode == 'PREPROCESSOR': return ['/Fi' + outputname] - if outputname.endswith('.exe'): + # hack: this list is not exhaustive + if outputname.endswith(('.exe', '.dll')): return ['/Fe' + outputname] return ['/Fo' + outputname]