From 3702b4bdb3645a2e7ef5a067ed21ad6accf0bc93 Mon Sep 17 00:00:00 2001 From: Kacper Michajłow Date: Mon, 13 May 2024 15:38:50 +0200 Subject: compilers: change get_argument_syntax to static method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows to get this fixed value before the class is initialized. Signed-off-by: Kacper Michajłow --- mesonbuild/compilers/compilers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/compilers/compilers.py') 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 -- cgit v1.2.3