Skip to content

Commit b4b7661

Browse files
committed
[build] don't run strip for libclang_rt.tvossim.a
1) strip will fail parsing that in Xcode 13.0b1 2) that library is copied from the Xcode installation and it is already stripped Addresses rdar://80098850
1 parent 340c855 commit b4b7661

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

utils/build-script-impl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3186,8 +3186,14 @@ for host in "${ALL_HOSTS[@]}"; do
31863186

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

31933199
# Codesign dylibs after strip tool

0 commit comments

Comments
 (0)