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>bb10
parent
a4e1bc5b13
commit
52b3a81865
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue