[compiler-rt] Use CMAKE_LINKER instead of hardcoding ld

Respect a custom linker path provided by the user if one is present
(otherwise CMAKE_LINKER will have been set to the right value by CMake).

llvm-svn: 334654
This commit is contained in:
Shoaib Meenai 2018-06-13 20:48:30 +00:00
parent 12395b7795
commit b682276f48

View File

@ -43,7 +43,7 @@ endfunction()
# link for.
function(darwin_get_toolchain_supported_archs output_var)
execute_process(
COMMAND ld -v
COMMAND "${CMAKE_LINKER}" -v
ERROR_VARIABLE LINKER_VERSION)
string(REGEX MATCH "configured to support archs: ([^\n]+)"