Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

prevent compiling from generating dSYM on OS X (using make)

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?

Thanks! Juan

like image 898
jbenet Avatar asked Feb 25 '23 05:02

jbenet


2 Answers

If you're compiling with the "-g" flag, remove it.

like image 105
dysruption Avatar answered Feb 27 '23 20:02

dysruption


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.

like image 20
Neno Ganchev Avatar answered Feb 27 '23 19:02

Neno Ganchev