aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-01-21 12:42:26 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-01-28 05:09:58 +0530
commitbc8c0730f3389d979569fc1f4c99fb9b8308a923 (patch)
tree8e7c2828e70409979a3ffe06a67145c7f8655efb
parent2bb58c909fd80cc8ce053b5f1b6565bd28a416d2 (diff)
downloadmeson-bc8c0730f3389d979569fc1f4c99fb9b8308a923.zip
meson-bc8c0730f3389d979569fc1f4c99fb9b8308a923.tar.gz
meson-bc8c0730f3389d979569fc1f4c99fb9b8308a923.tar.bz2
Add __repr__ for IncludeDirs
Helps debug issues with include directory handling.
-rw-r--r--mesonbuild/build.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index e5d2284..5466431 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -170,6 +170,10 @@ class IncludeDirs:
else:
self.extra_build_dirs = extra_build_dirs
+ def __repr__(self):
+ r = '<{} {}/{}>'
+ return r.format(self.__class__.__name__, self.curdir, self.incdirs)
+
def get_curdir(self):
return self.curdir