From b885c0d80a45993c0e236b4fea826396a6d5b393 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 8 Oct 2011 16:11:12 +0200 Subject: [PATCH] Cleanup --- waflib/extras/slow_qt4.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/waflib/extras/slow_qt4.py b/waflib/extras/slow_qt4.py index b6bb248a..ae8a597f 100644 --- a/waflib/extras/slow_qt4.py +++ b/waflib/extras/slow_qt4.py @@ -2,8 +2,11 @@ # Thomas Nagy, 2011 (ita) """ -Create _moc.cpp files (the builds are 30-40% faster when .moc files are included). -To use, just create a waf file including slow_qt4 and change the project configuration: +Create _moc.cpp files + +The builds are 30-40% faster when .moc files are included, +you should NOT use this tool. If you really +really want it: def configure(conf): conf.load('compiler_cxx qt4') @@ -28,7 +31,7 @@ class cxx_qt(waflib.Tools.cxx.cxx): try: cache = self.generator.moc_cache - except: + except AttributeError: cache = self.generator.moc_cache = {}