When using QMAKE_CXX = clang++ to force use of clang on a system where both gcc and clang is installed, clang++ is used for compiling the .cpp files but g++ is used for the final linking. This makes problems when UBSAN is used since g++ does not know clang option -fsanitize=unsigned-integer-overflow. How to force qmake to use clang for linking too?
You need to specify QMAKE_LINK=clang++ in addition to what you have specified for QMAKE_CXX.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With