[PATCH] D45464: [cmake] Make linker detection take flags into account
Shoaib Meenai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 25 23:08:09 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL330924: [cmake] Make linker detection take flags into account (authored by smeenai, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D45464
Files:
llvm/trunk/cmake/modules/AddLLVM.cmake
Index: llvm/trunk/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake
+++ llvm/trunk/cmake/modules/AddLLVM.cmake
@@ -152,7 +152,8 @@
if( LLVM_USE_LINKER )
set(command ${CMAKE_C_COMPILER} -fuse-ld=${LLVM_USE_LINKER} -Wl,--version)
else()
- set(command ${CMAKE_C_COMPILER} -Wl,--version)
+ separate_arguments(flags UNIX_COMMAND "${CMAKE_EXE_LINKER_FLAGS}")
+ set(command ${CMAKE_C_COMPILER} ${flags} -Wl,--version)
endif()
execute_process(
COMMAND ${command}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45464.144067.patch
Type: text/x-patch
Size: 575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180426/c23d67b9/attachment.bin>
More information about the llvm-commits
mailing list