summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-07-15 18:21:00 +0200
committerLars Knoll <lars.knoll@qt.io>2016-08-10 15:42:40 +0000
commit52b3a81865a39a69dce969bd24327ba89180e116 (patch)
tree8990e2c6f67ff766f3fd165c0c23ecd4fa43c596 /mkspecs
parenta4e1bc5b13556f21ff64817a0e2d5981aa3284b0 (diff)
don't distclean before every compile test run in non-clean build dir
due to gmake's Makefile auto-rebuild feature, the distclean would typically invoke qmake. overall, the step would almost double the run time of each compile test. instead, just clean between the regular qmake and make steps. this deletes the object file the test executable depends on, so this is sufficient to trigger a full rebuild. Change-Id: If8e254e172dd169e31fd606d9ef31d9a14f670d8 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/qt_configure.prf3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index f4d94c02bc..63ee6a48db 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -435,7 +435,8 @@ defineTest(qtConfTest_compile) {
qmake_args += "\"INCLUDEPATH *= $$includedir\""
# Clean up after previous run
- exists($$test_out_dir/Makefile): qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE distclean")
+ exists($$test_out_dir/Makefile): \
+ QMAKE_MAKE = "$$QMAKE_MAKE clean && $$QMAKE_MAKE"
mkpath($$test_out_dir)|error()