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

最后都变了- 提交于 2019-12-07 14:32:27

问题


I'm running gcov/gcc 4.1.2 on RHEL.

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


回答1:


Run gcov from the directory where you want its files to be created. You'll have to use the -o argument to tell it where to look for the .gcno/.gcda files. See gcov's docs for more info.



来源:https://stackoverflow.com/questions/1759475/gcov-creates-gcov-files-in-the-current-directory-is-there-any-way-to-change-th

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!