summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/asm.py
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2024-05-13 15:38:50 +0200
committerEli Schwartz <eschwartz93@gmail.com>2024-08-07 10:33:08 -0400
commit3702b4bdb3645a2e7ef5a067ed21ad6accf0bc93 (patch)
tree353c39899d93552e73588c6007fcf823e05743e6 /mesonbuild/compilers/asm.py
parenta5211a15207a2e6e30e213c5530a5d1bf5c2531c (diff)
downloadmeson-3702b4bdb3645a2e7ef5a067ed21ad6accf0bc93.tar.gz
compilers: change get_argument_syntax to static method
This allows to get this fixed value before the class is initialized. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
Diffstat (limited to 'mesonbuild/compilers/asm.py')
-rw-r--r--mesonbuild/compilers/asm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py
index cefda765f..8cd5e28dc 100644
--- a/mesonbuild/compilers/asm.py
+++ b/mesonbuild/compilers/asm.py
@@ -158,7 +158,8 @@ class MasmCompiler(Compiler):
def get_compile_only_args(self) -> T.List[str]:
return ['/c']
- def get_argument_syntax(self) -> str:
+ @staticmethod
+ def get_argument_syntax() -> str:
return 'msvc'
def needs_static_linker(self) -> bool: