Skip to content

Commit dd750a6

Browse files
committed
---
yaml --- r: 346693 b: refs/heads/master c: 782fbec h: refs/heads/master i: 346691: 694add6
1 parent fb5e214 commit dd750a6

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 70946a6839cebe711280181f875eecc163ea2aca
2+
refs/heads/master: 782fbec4ffc1eacef9b49a2dabe392a782d726ff
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/utils/build-presets.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,3 +1781,4 @@ build-libparser-only
17811781
swiftsyntax
17821782
verbose-build
17831783
skip-swiftsyntax-swiftside
1784+
darwin-install-extract-symbols

trunk/utils/build-script-impl

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3817,29 +3817,39 @@ for host in "${ALL_HOSTS[@]}"; do
38173817
call darwin_install_extract_symbols
38183818
else
38193819
set -x
3820+
if [ "${BUILD_LIBPARSER_ONLY}" ]; then
3821+
# We don't have a toolchain so we should install to the specified dir
3822+
CURRENT_INSTALL_DIR="${INSTALL_DESTDIR}"
3823+
CURRENT_PREFIX="/."
3824+
else
3825+
# If we have a toolchain, use the toolchain install dir.
3826+
CURRENT_INSTALL_DIR=${host_install_destdir}
3827+
CURRENT_PREFIX="${TOOLCHAIN_PREFIX}"
3828+
fi
3829+
38203830
# Copy executables and shared libraries from the `host_install_destdir` to
38213831
# INSTALL_SYMROOT and run dsymutil on them.
3822-
(cd "${host_install_destdir}" &&
3823-
find ./"${TOOLCHAIN_PREFIX}" -perm -0111 -type f -print | cpio --insecure -pdm "${INSTALL_SYMROOT}")
3832+
(cd "${CURRENT_INSTALL_DIR}" &&
3833+
find ./"${CURRENT_PREFIX}" -perm -0111 -type f -print | cpio --insecure -pdm "${INSTALL_SYMROOT}")
38243834

38253835
# Run dsymutil on executables and shared libraries.
38263836
#
38273837
# Exclude shell scripts.
38283838
(cd "${INSTALL_SYMROOT}" &&
3829-
find ./"${TOOLCHAIN_PREFIX}" -perm -0111 -type f -print | \
3839+
find ./"${CURRENT_PREFIX}" -perm -0111 -type f -print | \
38303840
grep -v crashlog.py | \
38313841
grep -v symbolication.py | \
38323842
xargs -n 1 -P ${BUILD_JOBS} $(xcrun_find_tool dsymutil))
38333843

38343844
# Strip executables, shared libraries and static libraries in
38353845
# `host_install_destdir`.
3836-
find "${host_install_destdir}${TOOLCHAIN_PREFIX}/" \
3846+
find "${CURRENT_INSTALL_DIR}${CURRENT_PREFIX}/" \
38373847
'(' -perm -0111 -or -name "*.a" ')' -type f -print | \
38383848
xargs -n 1 -P ${BUILD_JOBS} $(xcrun_find_tool strip) -S
38393849

38403850
# Codesign dylibs after strip tool
38413851
# rdar://45388785
3842-
find "${host_install_destdir}${TOOLCHAIN_PREFIX}/" \
3852+
find "${CURRENT_INSTALL_DIR}${CURRENT_PREFIX}/" \
38433853
'(' -name "*.dylib" ')' -type f -print | \
38443854
xargs -n 1 -P ${BUILD_JOBS} $(xcrun_find_tool codesign) -f -s -
38453855

0 commit comments

Comments
 (0)