Skip to content

Commit 93cb974

Browse files
committed
gitian: Use split-debug.sh for Win builds
Debug splitting was first introduced in 7e7eb27, then gitian-linux.yml changed to using split-debug.sh in 9d25362. Here we change gitian-win.yml to use split-debug.sh as well.
1 parent ccaef6c commit 93cb974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/gitian-descriptors/gitian-win.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ script: |
164164
find . -name "lib*.la" -delete
165165
find . -name "lib*.a" -delete
166166
rm -rf ${DISTNAME}/lib/pkgconfig
167-
find ${DISTNAME}/bin -type f -executable -exec ${i}-objcopy --only-keep-debug {} {}.dbg \; -exec ${i}-strip -s {} \; -exec ${i}-objcopy --add-gnu-debuglink={}.dbg {} \;
168-
find ${DISTNAME}/lib -type f -exec ${i}-objcopy --only-keep-debug {} {}.dbg \; -exec ${i}-strip -s {} \; -exec ${i}-objcopy --add-gnu-debuglink={}.dbg {} \;
167+
find ${DISTNAME}/bin -type f -executable -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg
168+
find ${DISTNAME}/lib -type f -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg
169169
find ${DISTNAME} -not -name "*.dbg" -type f | sort | zip -X@ ${OUTDIR}/${DISTNAME}-${i}.zip
170170
find ${DISTNAME} -name "*.dbg" -type f | sort | zip -X@ ${OUTDIR}/${DISTNAME}-${i}-debug.zip
171171
cd ../../

0 commit comments

Comments
 (0)