summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-11-22 17:58:51 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-11-22 19:12:43 +0100
commit7475f7d957d991b2be8206432afa9683e6ad9c09 (patch)
tree3aab98a369cbf6fae1221ec9ff5bbdc8d4cb94a4
parent20d354cc0cd37b85115818241aa126219f86c666 (diff)
downloadmpv-7475f7d957d991b2be8206432afa9683e6ad9c09.tar.bz2
mpv-7475f7d957d991b2be8206432afa9683e6ad9c09.tar.xz
build: remove spam generated by link task
Simply override the cprogram Task's __str__ method with our own implementation. This is way easier on the eyes when compiling mpv during development, since warnings are not pushed outside of your average screenful of content.
-rw-r--r--waftools/waf_customizations.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/waftools/waf_customizations.py b/waftools/waf_customizations.py
index b6798d4235..b3c2878e10 100644
--- a/waftools/waf_customizations.py
+++ b/waftools/waf_customizations.py
@@ -34,6 +34,10 @@ def build(ctx):
class cprogram(cls):
run_str = cls.hcode + '${LAST_LINKFLAGS}'
+ def __str__(self):
+ tgt_str = ' '.join([a.nice_path() for a in self.outputs])
+ return 'linking -> {0}\n'.format(tgt_str)
+
cls = Task.classes['macplist']
class macplist(cls):
def run(self):