Sublime Forum

Mac binary is unstripped

#1

Unclear if this is the place for bug reports, apologies if there is a better location for this. The Mac binary for Sublime Text is currently unstripped, it contains a large amount of local and exported symbol information that is not necessary. Running it though strip reduces the binary size from 14MB to 7MB on the current version. Generally this is handled in Xcode using DEPLOYMENT_POSTPROCESSING = YES for release builds.

Similar gains can be had by stripping the other bundled executables too.

0 Likes

#2

This is done on purpose for better bug reports from mac users. macOS uses debug info for crash reports and performance samples from activity monitor.

1 Like

#3

Wouldn’t you normally use dSYMs to populate the crash reports?

0 Likes

#4

Xcode likely uses dsymutil to separate the debug information from the executable, but clang does not do this by default. In both cases it’s still DWARF, so there’s no big difference between storing that in a separate file or not.

0 Likes

#5

The advantage of separating the debug info is that you don’t have to ship the symbols with your binary, so it can be smaller but you still get populated crash reports from your users.

0 Likes