diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-01-29 23:23:32 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-02-01 00:21:55 +0530 |
commit | af2aa5780af7a8cc89708f37c4746e552fb47461 (patch) | |
tree | 68534e06d2d1720d1ddd7dc7e521d3a18533e788 | |
parent | bc01a393ed6b19f23d27c346b5cdb451989ea336 (diff) | |
download | meson-nirbheek/macos-find_library-check-arch.tar.gz |
env: Add a repr() for MachineInfonirbheek/macos-find_library-check-arch
Makes it easier to debug with print()
-rw-r--r-- | mesonbuild/environment.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index a8889b54a..3fb93caf8 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 |