aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/nonebackend.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/backend/nonebackend.py')
-rw-r--r--mesonbuild/backend/nonebackend.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/mesonbuild/backend/nonebackend.py b/mesonbuild/backend/nonebackend.py
index cf7c3dd..79ee7b2 100644
--- a/mesonbuild/backend/nonebackend.py
+++ b/mesonbuild/backend/nonebackend.py
@@ -14,6 +14,8 @@
from __future__ import annotations
+import typing as T
+
from .backends import Backend
from .. import mlog
from ..mesonlib import MesonBugException
@@ -23,7 +25,15 @@ class NoneBackend(Backend):
name = 'none'
- def generate(self):
+ def generate(self,
+ capture: bool = False,
+ captured_compile_args_per_buildtype_and_target: dict = None) -> T.Optional[dict]:
+ # Check for (currently) unexpected capture arg use cases -
+ if capture:
+ raise MesonBugException('We do not expect the none backend to generate with \'capture = True\'')
+ if captured_compile_args_per_buildtype_and_target:
+ raise MesonBugException('We do not expect the none backend to be given a valid \'captured_compile_args_per_buildtype_and_target\'')
+
if self.build.get_targets():
raise MesonBugException('None backend cannot generate target rules, but should have failed earlier.')
mlog.log('Generating simple install-only backend')