Get the linker version and pass the it to compiler-rt tests on Darwin. (#86220)

The HOST_LINK_VERSION is a hardcoded string in Darwin clang that detects
the linker version at configure time. The driver uses this information
to build the correct set of arguments for the linker. This patch detects
the linker version again during compiler-rt configuration and passes it
to the tests. This allows a clang built on a machine with a new linker
to run compiler-rt tests on a machine with an old linker.

rdar://125198603

GitOrigin-RevId: 3bc71c2abfa00413fd15cf0e5c08af6ec0d4768b
3 files changed