gcov在当前目录中创建.gcov文件。有什么办法改变这个吗? [英] gcov creates .gcov files in the current directory. Is there any way to change this?

查看:310
本文介绍了gcov在当前目录中创建.gcov文件。有什么办法改变这个吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在RHEL上运行gcov / gcc 4.1.2。

I'm running gcov/gcc 4.1.2 on RHEL.

当我要为gcov文件指定目录时。有关如何执行此操作的任何想法?

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

推荐答案

从要创建其文件的目录运行gcov。你必须使用 -o 参数告诉它在哪里寻找.gcno / .gcda文件。有关详情,请参见 gcov的文档

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.

这篇关于gcov在当前目录中创建.gcov文件。有什么办法改变这个吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆