]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: use "CC --print-prog-name" to locate tools
authorCherry Mui <cherryyz@google.com>
Thu, 22 Jul 2021 22:57:52 +0000 (18:57 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 30 Sep 2021 19:56:06 +0000 (19:56 +0000)
commiteb9f090d1b543f54b319cab78027cdf2ce1a08b8
tree5f779c0c06cbb4902c06c43eb249072b99bec6c3
parent205640ed7b6b93d88351c85f0ecfb37d075f8dcf
cmd/link: use "CC --print-prog-name" to locate tools

When building for macOS with external linking, we currently use
"xcrun" to invoke "dsymutil" and "strip" tools. That doesn't work
well for cross compilation. Use "CC --print-prog-name" to find the
tool path instead.

Fixes #47316.

Change-Id: Ib30c6494c48bfb6a505dc26fe644ef543d777076
Reviewed-on: https://go-review.googlesource.com/c/go/+/336769
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/lib.go