qmake release with debug info
hello,
I'm using QMake to generate a Visual Studio project file on Windows.
I want my release build to include debugging information, which I can set manually in properties with:
C++/General/Debug Information Format -> Program Database
Linker/Debugging/Generate Debug Info -> Yes
However each time I change my project configuration and run QMake these properties have to be manually reset.
So, does there happen to be a QMake flag to generate a release binary with debugging information?
I know this question is quite petty because manually setting those properties is not too much trouble. Still, I would like to make my development pipeline as clean as possible.
thanks,
Richard
Re: qmake release with debug info
the debug information is something that the compiler would put, so i guess at most, you can try adding /DEBUG to the compiler flags in your make file.
Re: qmake release with debug info
which flag do you think would be relevant to add /DEBUG to? QMAKE_CXXFLAGS?
Re: qmake release with debug info
QMAKE_CXXFLAGS or QMAKE_CXXFLAGS_RELEASE..either change them in your makefile or you can change your qmake.conf
Re: qmake release with debug info
hello talk2amulya,
thanks for the hint! I have got it working now and the exact flags I needed were:
QMAKE_CXXFLAGS_RELEASE += /Zi
QMAKE_LFLAGS_RELEASE += /DEBUG
Richard