Qt and gcov, coverage files are not generated

后端 未结 2 1322
小蘑菇
小蘑菇 2021-01-16 04:23

I am trying to obtain code coverage for a component I am writing for the Arora browser, that is written using C++ and Qt framework.

I am not able to use the gcov pro

2条回答
  •  情书的邮戳
    2021-01-16 04:49

    At least you should use

    QMAKE_LFLAGS += -g -fprofile-arcs -ftest-coverage  -O0
    

    instead of

    QMAKE_LDFLAGS += -g -fprofile-arcs -ftest-coverage  -O0
    

    I'm not sure if that will fix your problem but QMAKE_LDFLAGS is not going to do anything useful.

提交回复
热议问题