[Interest] Qt Application - Disabling AVX/AVX2

coroberti . coroberti at gmail.com
Tue Apr 21 23:26:13 CEST 2020


Hi,
Is it enough to define:

QMAKE_CFLAGS -= -arch:AVX -arch:AVX2
QMAKE_CXXFLAGS -=  -arch:AVX -arch:AVX2

to ensure that compilation by QtCreator with Qt-5.14-MSVC Windows
will not compile with such optimization flags even if avx and avx2 instructions
have not been disabled in Qt-library itself?

Thanks!

Kind regards,
Robert


More information about the Interest mailing list