]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.22] cmd/link: don't let dsymutil delete our temp directory
authorCherry Mui <cherryyz@google.com>
Fri, 21 Jun 2024 15:56:45 +0000 (11:56 -0400)
committerCarlos Amedee <carlos@golang.org>
Wed, 10 Jul 2024 19:31:27 +0000 (19:31 +0000)
commit4e548f2c8e489a408033c8aab336077b16bc8cf7
tree520575eb6946ccf8af65e5e2a6350d8c4d37c904
parent45f9ded1df582eb87e06d7fc8cab905ee68f8aa7
[release-branch.go1.22] cmd/link: don't let dsymutil delete our temp directory

To work around #59026, where dsymutil may not clean up its temp
directory at exit, we set DSYMUTIL_REPRODUCER_PATH to our temp
directory so it uses that, and we can delete it at the end.

In Xcode 16 beta, dsymutil deletes the DSYMUTIL_REPRODUCER_PATH
directory even if it is not empty. We still need our tmpdir at the
point, so give a subdirectory to dsymutil instead.

Updates #68088.
Fixes #68198.

Change-Id: I18759cc39512819bbd0511793ce917eae72245d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/593659
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
(cherry picked from commit 5f319b75075a62ab176ab8c25f0e45f2ae4f0704)
Reviewed-on: https://go-review.googlesource.com/c/go/+/596455
src/cmd/link/internal/ld/lib.go