Skip to content

Commit 77bd312

Browse files
authored
[build-script] In symbol extraction, also codesign executables after 'strip' and not just dylibs (#64574)
1 parent 5e038f8 commit 77bd312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/build-script-impl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3264,10 +3264,10 @@ for host in "${ALL_HOSTS[@]}"; do
32643264
'(' -perm -0111 -or -name "*.a" ')' -type f -print | \
32653265
xargs -n 1 -P ${BUILD_JOBS} $(xcrun_find_tool strip) -S
32663266

3267-
# Codesign dylibs after strip tool
3267+
# Codesign dylibs and executables in usr/bin after strip tool
32683268
# rdar://45388785
32693269
find "${CURRENT_INSTALL_DIR}${CURRENT_PREFIX}/" \
3270-
'(' -name "*.dylib" ')' -type f -print | \
3270+
'(' '(' -path "*/usr/bin/*" -and -perm -0111 ')' -or -name "*.dylib" ')' -type f -print | \
32713271
xargs -n 1 -P ${BUILD_JOBS} $(xcrun_find_tool codesign) -f -s -
32723272
fi
32733273

0 commit comments

Comments
 (0)