summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/asm.py3
-rw-r--r--mesonbuild/compilers/compilers.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py
index fd6a0de33..052e83329 100644
--- a/mesonbuild/compilers/asm.py
+++ b/mesonbuild/compilers/asm.py
@@ -266,6 +266,9 @@ class MasmARMCompiler(ASMCompiler):
def get_crt_compile_args(self, crt_val: str, buildtype: str) -> T.List[str]:
return []
+ def get_depfile_format(self) -> str:
+ return 'msvc'
+
def depfile_for_object(self, objfile: str) -> T.Optional[str]:
return None
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 34520bbb6..4432f198a 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1240,6 +1240,9 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
def get_include_args(self, path: str, is_system: bool) -> T.List[str]:
return []
+ def get_depfile_format(self) -> str:
+ return 'msvc' if self.get_argument_syntax() == 'msvc' else 'gcc'
+
def depfile_for_object(self, objfile: str) -> T.Optional[str]:
return objfile + '.' + self.get_depfile_suffix()