Skip to content

Commit 0068722

Browse files
committed
Fix the host-specific installation destdir for build-script products.
Prior to this, build-script products that build in the host-specific directories for cross-compilation would get the wrong path, and therefore wouldn't get picked up in toolchain builds.
1 parent daa93dc commit 0068722

File tree

1 file changed

+1
-1
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+1
-1
lines changed

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)