Qmake: how to remove compiler flag for a certain project, without changing qmake.conf?

I had a similar problem and I solved it by adding the following directive in the .pro file:

QMAKE_CXXFLAGS_RELEASE -= -g

Observe the _RELEASE suffix, otherwise don’t work.

Leave a Comment