summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2018-06-13 20:48:30 +0000
committerShoaib Meenai <smeenai@fb.com>2018-06-13 20:48:30 +0000
commit63d63ad07e6164c141d042e706283814c66f7f27 (patch)
treefda1d6fcbd735a5c03115e6e711096b2d63220f9 /cmake
parent5e34216db1e03cf761caa71e2bbb604a66c7d641 (diff)
[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). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/CompilerRTDarwinUtils.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/CompilerRTDarwinUtils.cmake b/cmake/Modules/CompilerRTDarwinUtils.cmake
index a25540bf4..d9214c071 100644
--- a/cmake/Modules/CompilerRTDarwinUtils.cmake
+++ b/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]+)"