Gcov creates .gcov files in the current directory. Is there any way to change this?

I am running gcov / gcc 4.1.2 on RHEL.

When I want to specify a directory for gcov files. Any ideas on how to do this?

+3
source share
1 answer

Run gcov from the directory in which you want its files to be created. You will need to use an argument -oto indicate where to look for .gcno / .gcda files. See gcov docs for more details .

+5
source

Source: https://habr.com/ru/post/1723282/


All Articles