Skip to content

Commit 03e32c4

Browse files
authored
Merge pull request swiftlang#39256 from DougGregor/backdeploy-toolchain-build-fixes
Fix the host-specific installation destdir for build-script products.
2 parents 6117570 + 0068722 commit 03e32c4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

utils/build-toolchain

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ case $(uname -s) in
5757
Darwin)
5858
SWIFT_PACKAGE=buildbot_osx_package
5959
OS_SUFFIX=osx
60-
BUILD_SUBDIR=buildbot_osx
6160
;;
6261
Linux)
6362
SWIFT_PACKAGE=buildbot_linux
6463
OS_SUFFIX=linux
65-
BUILD_SUBDIR=buildbot_linux
6664
;;
6765
*)
6866
echo "Unrecognised platform $(uname -s)"
@@ -136,7 +134,7 @@ DISPLAY_NAME_SHORT="Local Swift Development Snapshot"
136134
DISPLAY_NAME="${DISPLAY_NAME_SHORT} ${YEAR}-${MONTH}-${DAY}"
137135

138136
SWIFT_INSTALLABLE_PACKAGE="${RESULT_DIR}/${ARCHIVE}"
139-
SWIFT_INSTALL_DIR="${RESULT_DIR}/${BUILD_SUBDIR}"
137+
SWIFT_INSTALL_DIR="${RESULT_DIR}/swift-nightly-install"
140138
SWIFT_INSTALL_SYMROOT="${RESULT_DIR}/swift-nightly-symroot"
141139
SWIFT_TOOLCHAIN_DIR="/Library/Developer/Toolchains/${TOOLCHAIN_NAME}.xctoolchain"
142140
SYMBOLS_PACKAGE="${RESULT_DIR}/${SYM_ARCHIVE}"

utils/swift_build_support/swift_build_support/products/product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def host_install_destdir(self, host_target):
224224
# If this is one of the hosts we should lipo,
225225
# install in to a temporary subdirectory.
226226
return '%s/intermediate-install/%s' % \
227-
(self.args.install_destdir, host_target)
227+
(os.path.dirname(self.build_dir), host_target)
228228
elif host_target == "merged-hosts":
229229
# This assumes that all hosts are merged to the lipo.
230230
return self.args.install_destdir

0 commit comments

Comments
 (0)