Skip to content

Commit

Permalink
Merge pull request #2746 from k-takata/appveyor-debuginfo
Browse files Browse the repository at this point in the history
appveyor: Revise packaging of debug symbols
  • Loading branch information
k-takata committed Dec 1, 2020
2 parents 9a53af6 + c4b5c04 commit e52cf4a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions win32/appveyor.bat
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,18 @@ copy COPYING package\license > nul
copy win32\mkstemp\COPYING.MinGW-w64-runtime.txt package\license > nul
robocopy man package\man *.html > nul
cd package
7z a ..\ctags-%ver%-%ARCH%.debug.zip %filelist% %dirlist%
strip *.exe
for %%i in (*.exe) do call :strip %%i
7z a ..\ctags-%ver%-%ARCH%.zip %filelist% %dirlist%
7z a ..\ctags-%ver%-%ARCH%.debuginfo.zip *.exe.debug
cd ..
goto :eof

:strip
objcopy --only-keep-debug %1 %1.debug
strip %1
objcopy --add-gnu-debuglink=%1.debug %1
goto :eof


:mingw_build
:: ----------------------------------------------------------------------
Expand Down

0 comments on commit e52cf4a

Please sign in to comment.