Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QMAKE does not parse Compiler/Linker Flag for Visual Studio



  • Hello,

    i want to pass additional compiler flag @/Zp[16]@ and a linker flag @/OPT:RREF@ to visual studio via *.pro file which looks like this

    @QMAKE_CXXFLAGS_RELEASE += -MP$(NUMBER_OF_PROCESSORS) /Ox /Ob2 /Oi /Ot /Oy /GL /Zp[16] /arch:SSE2 /openmp
    QMAKE_LFLAGS_RELEASE += /LTCG /OPT:RREF /OPT:ICF@

    file but it does not work. I get the following warnings:

    @WARNING: Could not parse Compiler option: /Zp[16], added as AdditionalOption
    WARNING: Could not parse Linker options: /OPT:RREF, added as AdditionalOption@

    Any idea how to escape this? The parameters are not activated in VS after the sln and proj files are generated.

    Thanks in advance

    EDIT:
    I solved this with: "/Zp16" for the compiler
    and linker flag /OPT:REF /OPT:ICF




Log in to reply