Merge pull request #219683 from symphorien/separatedebuginfo_static

separate-debug-info.sh: succeed when output only contains static libs
This commit is contained in:
Sergei Trofimovich 2023-03-12 17:02:03 +00:00 committed by GitHub
commit 22b935ace8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,9 @@ _separateDebugInfo() {
local dst="${debug:-$out}"
if [ "$prefix" = "$dst" ]; then return 0; fi
# in case there is nothing to strip, don't fail the build
mkdir -p "$dst"
dst="$dst/lib/debug/.build-id"
# Find executables and dynamic libraries.