diff options
author | Shoaib Meenai <smeenai@fb.com> | 2018-06-13 20:48:30 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2018-06-13 20:48:30 +0000 |
commit | b682276f48980a4f10078f5d187964a6c531158d (patch) | |
tree | 28182fe66170653f6e625538cdd24249a7ba4ac3 | |
parent | 12395b7795f7bf576f047bdf2fdd02141b72f0f9 (diff) | |
download | bcm5719-llvm-b682276f48980a4f10078f5d187964a6c531158d.tar.gz bcm5719-llvm-b682276f48980a4f10078f5d187964a6c531158d.zip |
[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
-rw-r--r-- | compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake index a25540bf46d..d9214c071a7 100644 --- a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake +++ b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake @@ -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]+)" |