aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-03-09 14:04:02 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-03-14 22:05:55 -0700
commit320412b3bbe97d8779d715f992f7a88d3a461ace (patch)
treea5c15017ca17eacef97278441e46f59ac36136cc /mesonbuild/compilers/compilers.py
parentbe86199221046fa5527b93b8c7231c6c3af344d4 (diff)
downloadmeson-320412b3bbe97d8779d715f992f7a88d3a461ace.zip
meson-320412b3bbe97d8779d715f992f7a88d3a461ace.tar.gz
meson-320412b3bbe97d8779d715f992f7a88d3a461ace.tar.bz2
compilers/linkers: Add a methhod for getting the rspfile syntax
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index af76ea4..a8a7cd1 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -34,7 +34,7 @@ if T.TYPE_CHECKING:
from ..coredata import OptionDictType, KeyedOptionDictType
from ..envconfig import MachineInfo
from ..environment import Environment
- from ..linkers import DynamicLinker # noqa: F401
+ from ..linkers import DynamicLinker, RSPFileSyntax
from ..dependencies import Dependency
CompilerType = T.TypeVar('CompilerType', bound=Compiler)
@@ -1217,6 +1217,14 @@ class Compiler(metaclass=abc.ABCMeta):
def get_prelink_args(self, prelink_name: str, obj_list: T.List[str]) -> T.List[str]:
raise EnvironmentException(f'{self.id} does not know how to do prelinking.')
+ def rsp_file_syntax(self) -> 'RSPFileSyntax':
+ """The format of the RSP file that this compiler supports.
+
+ If `self.can_linker_accept_rsp()` returns True, then this needs to
+ be implemented
+ """
+ return self.linker.rsp_file_syntax()
+
def get_global_options(lang: str,
comp: T.Type[Compiler],