diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2021-03-09 14:04:02 -0800 | 
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2021-03-14 22:05:55 -0700 | 
| commit | 320412b3bbe97d8779d715f992f7a88d3a461ace (patch) | |
| tree | a5c15017ca17eacef97278441e46f59ac36136cc /mesonbuild/compilers/cs.py | |
| parent | be86199221046fa5527b93b8c7231c6c3af344d4 (diff) | |
| download | meson-320412b3bbe97d8779d715f992f7a88d3a461ace.tar.gz | |
compilers/linkers: Add a methhod for getting the rspfile syntax
Diffstat (limited to 'mesonbuild/compilers/cs.py')
| -rw-r--r-- | mesonbuild/compilers/cs.py | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cs.py b/mesonbuild/compilers/cs.py index ba65d0746..218942c08 100644 --- a/mesonbuild/compilers/cs.py +++ b/mesonbuild/compilers/cs.py @@ -17,6 +17,7 @@ import textwrap  import typing as T  from ..mesonlib import EnvironmentException +from ..linkers import RSPFileSyntax  from .compilers import Compiler, MachineChoice, mono_buildtype_args  from .mixins.islinker import BasicLinkerIsCompilerMixin @@ -125,6 +126,9 @@ class MonoCompiler(CsCompiler):          super().__init__(exelist, version, for_machine, info, 'mono',                           runner='mono') +    def rsp_file_syntax(self) -> 'RSPFileSyntax': +        return RSPFileSyntax.GCC +  class VisualStudioCsCompiler(CsCompiler):      def __init__(self, exelist: T.List[str], version: str, for_machine: MachineChoice, @@ -141,3 +145,6 @@ class VisualStudioCsCompiler(CsCompiler):                  tmp.append(flag)              res = tmp          return res + +    def rsp_file_syntax(self) -> 'RSPFileSyntax': +        return RSPFileSyntax.MSVC  | 
