Skip to content

Disable the compiler optimiser for qmake examples #23

@pento

Description

@pento

qmake defaults to adding -O2 when compiling, which can cause gcov to miss that some lines were optimised out.

I fixed this by adding this setting to my .pro file:

QMAKE_CXXFLAGS_RELEASE -= -O2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions