[build-script] In symbol extraction, also codesign executables after 'strip' and not just dylibs (#64574)

This commit is contained in:
Kuba (Brecka) Mracek
2023-03-31 20:18:05 -07:00
committed by GitHub
parent 5e038f8b5d
commit 77bd312a88

View File

@@ -3264,10 +3264,10 @@ for host in "${ALL_HOSTS[@]}"; do
'(' -perm -0111 -or -name "*.a" ')' -type f -print | \
xargs -n 1 -P ${BUILD_JOBS} $(xcrun_find_tool strip) -S
# Codesign dylibs after strip tool
# Codesign dylibs and executables in usr/bin after strip tool
# rdar://45388785
find "${CURRENT_INSTALL_DIR}${CURRENT_PREFIX}/" \
'(' -name "*.dylib" ')' -type f -print | \
'(' '(' -path "*/usr/bin/*" -and -perm -0111 ')' -or -name "*.dylib" ')' -type f -print | \
xargs -n 1 -P ${BUILD_JOBS} $(xcrun_find_tool codesign) -f -s -
fi