summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.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/compilers.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/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 3dcf496d4..b9605ccae 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -963,7 +963,8 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
def get_pie_link_args(self) -> T.List[str]:
return self.linker.get_pie_args()
- def get_argument_syntax(self) -> str:
+ @staticmethod
+ def get_argument_syntax() -> str:
"""Returns the argument family type.
Compilers fall into families if they try to emulate the command line