aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/environment.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index a8889b5..3fb93ca 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -1322,6 +1322,9 @@ class MachineInfo:
return NotImplemented
return not self.__eq__(other)
+ def __repr__(self):
+ return '<MachineInfo: {} {} ({})>'.format(self.system, self.cpu_family, self.cpu)
+
@staticmethod
def detect(compilers = None):
"""Detect the machine we're running on