Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 11.0.1
-
macOS Ventura 13.4.1 (M1), Xcode 14.3
-
-
9c2527eea (11.0)
Description
This bug makes it very difficult to develop large projects – it causes unnecessary, time-consuming rebuilds of the whole project.
Steps to reproduce
- Create a new "Qt Widgets Application" project template in Qt Creator. Use all wizard defaults, but pick the qmake build system.
- Configure it for any kit (for example, "Qt 6.5.2 for macOS" or "Qt 6.5.2 for iOS Simulator". macOS is faster than iOS)
- Open Qt Creator's "Compile Output" pane and monitor it for the next steps.
- Build the project in Debug mode.
- Switch the configuration to Release mode and build the project.
- Switch the configuration to Debug mode and build the project.
- Keep repeating Steps #5 and #6
Expected outcomes
Step #6 (and all subsequent switches) should be a no-op.
Actual outcomes
Step #6 (and all subsequent switches) runs `make clean` and wipes the build folder, requiring a full rebuild:
15:30:33: Running steps for project untitled7... 15:30:33: Starting: "/usr/bin/make" clean -j8 rm -f moc_mainwindow.cpp rm -f ui_mainwindow.h rm -f main.o mainwindow.o moc_mainwindow.o rm -f *~ core *.core 15:30:33: The process "/usr/bin/make" exited normally. 15:30:33: Elapsed time: 00:00.
Notes
- CMake is not affected
- Windows is not affected
Partial workaround
Under "Build Settings" > "Clean Steps", change the "Make arguments" from "clean" to "--version". This renders the bug mostly harmless – you just need to temporarily change it back to "clean" when you actually want to clean.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-29451 Creator always do clean and build on kit switch
- Closed