Skip to content

Commit b3368a0

Browse files
committed
Makefile macOS: generate symbols in GUI bundle
Moving just the X.dSYM directory isn't enough since the executable is identified by name inside the .dSYM tree. But it may be possible to move the symbols to the "main" tree, since the subtree mimics the hierarchy, eg. for uv, the symbols are in uv.dSYM/Contents/Resources.
1 parent 4a8c12f commit b3368a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Makefile.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,13 @@ $(GUI_BUNDLE): $(BUNDLE) $(GUI_BUNDLE_DEP)
620620
# add Qt frameworks
621621
command -v macdeployqt && macdeployqt $(GUI_BUNDLE) -verbose=2
622622
$(CP) -nR $(BUNDLE)/* $(GUI_BUNDLE)/ || true
623+
rm -rf $(GUI_BUNDLE)/Contents/MacOS/*.dSYM
623624
if [ $(MACOS_LEGACY) = no ]; then \
624625
for n in $(GUI_BUNDLE)/Contents/MacOS/*; do \
625626
if expr $$n : '.*-real$$' >/dev/null || expr $$n : '.*\.sh$$' >/dev/null || \
626627
[ !-f $$n ]; then continue; fi; \
627-
mv -f $$n $$n-real; $(CP) -f $(srcdir)/data/scripts/macos-wrapper $$n; \
628+
mv -f $$n $$n-real; dsymutil $$n-real; \
629+
$(CP) -f $(srcdir)/data/scripts/macos-wrapper $$n; \
628630
done; \
629631
fi
630632

0 commit comments

Comments
 (0)