Skip to content

Disable the compiler optimiser for qmake examples #23

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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