Skip to content

[build] Don't execute dsymutil in parallel #33654

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

Merged
merged 1 commit into from
Aug 27, 2020
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -2980,12 +2980,13 @@ for host in "${ALL_HOSTS[@]}"; do
#
# Exclude shell scripts and static archives.
# Exclude swift-api-digester dSYM to reduce debug toolchain size.
# Run sequentially -- dsymutil is multithreaded and can be memory intensive
(cd "${host_symroot}" &&
find ./"${CURRENT_PREFIX}" -perm -0111 -type f -print | \
grep -v '.py$' | \
grep -v '.a$' | \
grep -v 'swift-api-digester' | \
xargs -n 1 -P ${BUILD_JOBS} ${dsymutil_path})
xargs -n 1 -P 1 ${dsymutil_path})

# Strip executables, shared libraries and static libraries in
# `host_install_destdir`.
Expand Down
3 changes: 2 additions & 1 deletion utils/parser-lib/darwin-extract-symbols
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ function xcrun_find_tool() {
# Run dsymutil on executables and shared libraries.
#
# Exclude shell scripts.
# Run sequentially -- dsymutil is multithreaded and can be memory intensive
(cd "${INSTALL_SYMROOT}" &&
find ./"${INSTALL_PREFIX}" -perm -0111 -type f -print | \
grep -v crashlog.py | \
grep -v symbolication.py | \
xargs -n 1 -P ${BUILD_JOBS} $(xcrun_find_tool dsymutil))
xargs -n 1 -P 1 $(xcrun_find_tool dsymutil))

# Strip executables, shared libraries and static libraries in INSTALL_DIR.
find "${INSTALL_DIR}${INSTALL_PREFIX}/" \
Expand Down