]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0846: debug symbols for xxd are not cleaned in Makefile v9.1.0846
authorYee Cheng Chin <ychin.git@gmail.com>
Thu, 7 Nov 2024 21:11:06 +0000 (22:11 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 7 Nov 2024 21:11:06 +0000 (22:11 +0100)
Problem:  debug symbols for xxd are not cleaned in Makefile
Solution: remove  xxd.dSYM in xxds Makefile, call xxd clean target from
          main Makefile (Yee Cheng Chin)

Remove xxd.dSYM folder when calling `make clean`. On macOS, when
compiling with debug info, clang will generate a "dSYM" folder that
contains debug symbols for the executable because unlike Linux, the
DWARF data is not embedded in the executable itself.

closes: #16010

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/Makefile
src/version.c
src/xxd/Makefile

index c7ba9fbf7c1de04e2765abed895e2bfdbb398107..7bb0a7ebd6ed72ceb9e932dffce86c28dcd0ed7d 100644 (file)
@@ -2882,9 +2882,9 @@ uninstall_runtime:
 # Clean up all the files that have been produced, except configure's.
 # We support common typing mistakes for Juergen! :-)
 clean celan: testclean
-       -rm -f *.o core $(VIMTARGET).core $(VIMTARGET) vim xxd/*.o
+       -rm -f *.o core $(VIMTARGET).core $(VIMTARGET) vim
        -rm -rf objects
-       -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c auto/gui_gtk_gresources.c auto/gui_gtk_gresources.h auto/os_haiku.rdef
+       -rm -f auto/osdef.h auto/pathdef.c auto/if_perl.c auto/gui_gtk_gresources.c auto/gui_gtk_gresources.h auto/os_haiku.rdef
        -rm -f conftest* *~ auto/link.sed
        -rm -f testdir/opt_test.vim
        -rm -f $(UNITTEST_TARGETS)
@@ -2894,6 +2894,7 @@ clean celan: testclean
        if test -d $(PODIR); then \
                cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \
        fi
+       cd xxd; $(MAKE) clean
 
 # Make a shadow directory for compilation on another system or with different
 # features:
index 22d1d2616ddf614c35575e9a822d7635021a3126..a1b75862f792f148ef87b56f4733daad2b96c2b7 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    846,
 /**/
     845,
 /**/
index d08af7aa0167f5eb0ea93c3eb3d7841a6fad3c56..5937f137465c8bd663cbc04f0dd7beebbb09ddba 100644 (file)
@@ -5,3 +5,4 @@ xxd: xxd.c
 
 clean:
        rm -f xxd xxd.o
+       rm -rf xxd.dSYM