Skip to content

Commit

Permalink
interpreter: Ignore summary() for is_build_only
Browse files Browse the repository at this point in the history
It's not really that useful anyway, so not worth dealing with
subproject summary collisions between build and host.
  • Loading branch information
oleavr committed Mar 18, 2024
1 parent aedeead commit cab1421
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mesonbuild/interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,8 @@ def message_impl(self, args):
)
def func_summary(self, node: mparser.BaseNode, args: T.Tuple[T.Union[str, T.Dict[str, T.Any]], T.Optional[T.Any]],
kwargs: 'kwtypes.Summary') -> None:
if self.coredata.is_build_only:
return
if args[1] is None:
if not isinstance(args[0], dict):
raise InterpreterException('Summary first argument must be dictionary.')
Expand Down

0 comments on commit cab1421

Please sign in to comment.