[compiler-rt] r334654 - [compiler-rt] Use CMAKE_LINKER instead of hardcoding ld
Shoaib Meenai via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 13 13:48:30 PDT 2018
Author: smeenai
Date: Wed Jun 13 13:48:30 2018
New Revision: 334654
URL: http://llvm.org/viewvc/llvm-project?rev=334654&view=rev
Log:
[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).
Modified:
compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
Modified: compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake?rev=334654&r1=334653&r2=334654&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake Wed Jun 13 13:48:30 2018
@@ -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]+)"
More information about the llvm-commits
mailing list