本文介绍了防止在OS X上生成dSYM(使用make)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个c ++项目(开源),默认情况下不需要去除调试符号。有很多测试可执行文件,有很多在OS X上生成的dSYM文件。我已经尝试-g3作为g ++标志无效。想法?

I've got a c++ project (open source) that does not need to strip debugging symbols by default. With a lot of test executables, there are a lot of dSYM files generated on OS X. I've tried -g3 as a g++ flag to no avail. Ideas?

谢谢!
Juan

Thanks!Juan

推荐答案

Ted Mielczarek指出,gcc不会自己生成dSYM文件,在目标文件中生成它们所需的信息。如果你使用make构建项目,很可能在makefile中有一个单独的步骤,在编译/链接可执行文件后运行dsymutil,看看你是否可以找到并删除它。

As Ted Mielczarek pointed out, gcc does not produce dSYM files on its own, it simply stores the information needed to produce them in the object files. If you're using make to build your project, it is most likely that there is a separate step in the makefile which runs dsymutil after compiling/linking the executable, see if you can find and remove it.

这篇关于防止在OS X上生成dSYM(使用make)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 00:59