Skip to content

[build] don't run strip for libclang_rt.tvossim.a #38237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -3186,8 +3186,14 @@ for host in "${ALL_HOSTS[@]}"; do

# Strip executables, shared libraries and static libraries in
# `host_install_destdir`.
# We exclude on purpose libclang_rt.tvossim.a since
# 1) strip will fail parsing that in Xcode 13.0b1 (rdar://80098850)
# 2) that library is copied from the Xcode installation,
# and it is already stripped
find "${CURRENT_INSTALL_DIR}${CURRENT_PREFIX}/" \
'(' -perm -0111 -or -name "*.a" ')' -type f -print | \
'(' -perm -0111 -or -name "*.a" ')' \
-not -name 'libclang_rt.tvossim.a' \
-type f -print | \
xargs -n 1 -P ${BUILD_JOBS} $(xcrun_find_tool strip) -S

# Codesign dylibs after strip tool
Expand Down