How do I enable usage of sanitizers in QMake's .pro
files?
I found several ressources that modify QMAKE_CXXFLAGS
themselves but the introductory blogpost says:
It is scheduled for the dev branch (Qt 5.2) because it’s a new feature, but you should be fine cherry-picking it to e.g. Qt 5.0. You can then configure Qt with -address-sanitizer, and run qmake CONFIG+=address_sanitizer for your own applications.
However, adding CONFIG+=address_sanitizer
does not seem to have an effect.
CONFIG+=sanitizer CONFIG+=sanitize_address
. – Strategy