Qt optimization flags



  • I use Qt with MinGW 5.7 on Windows 10. I am using a code done by an ex colleague and I don't understand the effect of the optimization flags in the .pro:

    Note that one is +=

    QMAKE_CXXFLAGS_RELEASE -= -O2
    QMAKE_CXXFLAGS_RELEASE += -O3
    QMAKE_LFLAGS_RELEASE -= -O1
    Thank you very much,

    Alex


  • Lifetime Qt Champion

    Hi,

    First line is remove the 02 optimisation flag when compiling in release mode.
    Second line is add the 03 optimisation flag when compiling in release mode.
    Third line is remove the 01 optimisation flag when linking in release mode.

    More informant about the optimisation and their corresponding values.



  • Thanks !


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.