When I looked at projects -> build steps -> qmake efficient call, I found additional CONFIGS:
"CONFIG+=force_debug_info" "CONFIG+=separate_debug_info"
I also found some comments for them that could clarify why this is necessary:
Hello everybody,
once again I am preparing a Qt 5 build for profiling and again wondering why there is no way to combine -release and -debug in a Qt configure script. The only way to get a reasonable build for profiling the Qt code itself, which I know that hack mkspec and ensures that -g is even added to -reserve mode.
Is there a reason for this? Could we somehow improve this situation by simplifying the Qt assembly using optimizations and debugging symbols?
Am I missing the recommended way to do this?
This option creates release builds (with all compiler optimizations), but with debugging symbols (pdb files) that are needed to test C ++ performance.
source share