mesonlib: Allow PerMachineDefaultable to take arguments at initialization

pull/8809/head
Dylan Baker 4 years ago committed by Xavier Claessens
parent 49b5037496
commit 012d60b100
  1. 4
      mesonbuild/mesonlib/universal.py

@ -530,8 +530,8 @@ class PerThreeMachine(PerMachine[_T]):
class PerMachineDefaultable(PerMachine[T.Optional[_T]]):
"""Extends `PerMachine` with the ability to default from `None`s.
"""
def __init__(self) -> None:
super().__init__(None, None)
def __init__(self, build: T.Optional[_T] = None, host: T.Optional[_T] = None) -> None:
super().__init__(build, host)
def default_missing(self) -> "PerMachine[_T]":
"""Default host to build

Loading…
Cancel
Save