[PATCH] D51799: [CMake] Avoid REVERSE on empty list
Sven van Haastregt via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 26 03:15:54 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343088: [CMake] Avoid REVERSE on unset variable (authored by svenvh, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51799?vs=164443&id=167092#toc
Repository:
rL LLVM
https://reviews.llvm.org/D51799
Files:
llvm/trunk/cmake/modules/LLVM-Config.cmake
Index: llvm/trunk/cmake/modules/LLVM-Config.cmake
===================================================================
--- llvm/trunk/cmake/modules/LLVM-Config.cmake
+++ llvm/trunk/cmake/modules/LLVM-Config.cmake
@@ -302,7 +302,9 @@
expand_topologically(${lib} "${required_libs}" "${visited_libs}")
endforeach()
- list(REVERSE required_libs)
+ if(required_libs)
+ list(REVERSE required_libs)
+ endif()
set(${out_libs} ${required_libs} PARENT_SCOPE)
endfunction()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51799.167092.patch
Type: text/x-patch
Size: 484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180926/c4e716e2/attachment.bin>
More information about the llvm-commits
mailing list