env: Add a repr() for MachineInfo

Makes it easier to debug with print()
pull/4862/head
Nirbheek Chauhan 6 years ago committed by Nirbheek Chauhan
parent b5f6be6733
commit 310b518921
  1. 3
      mesonbuild/environment.py

@ -1322,6 +1322,9 @@ class MachineInfo:
return NotImplemented return NotImplemented
return not self.__eq__(other) return not self.__eq__(other)
def __repr__(self):
return '<MachineInfo: {} {} ({})>'.format(self.system, self.cpu_family, self.cpu)
@staticmethod @staticmethod
def detect(compilers = None): def detect(compilers = None):
"""Detect the machine we're running on """Detect the machine we're running on

Loading…
Cancel
Save