[PATCH] D27719: [compiler-rt] Fix error in cmake. Check for empty list.
Marcos Pividori via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 13 10:23:36 PST 2016
mpividori created this revision.
mpividori added a reviewer: zturner.
mpividori added a subscriber: llvm-commits.
mpividori set the repository for this revision to rL LLVM.
Herald added subscribers: mgorny, dberris.
Hi,
This patch fix an error in cmake:
CMake Error at projects/compiler-rt/cmake/config-ix.cmake:420 (list):
list sub-command REMOVE_DUPLICATES requires list to be present.
Thanks
Repository:
rL LLVM
https://reviews.llvm.org/D27719
Files:
cmake/config-ix.cmake
Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -417,7 +417,9 @@
find_program(GOLD_EXECUTABLE NAMES ${LLVM_DEFAULT_TARGET_TRIPLE}-ld.gold ld.gold ${LLVM_DEFAULT_TARGET_TRIPLE}-ld ld DOC "The gold linker")
-list(REMOVE_DUPLICATES COMPILER_RT_SUPPORTED_ARCH)
+if(COMPILER_RT_SUPPORTED_ARCH)
+ list(REMOVE_DUPLICATES COMPILER_RT_SUPPORTED_ARCH)
+endif()
message(STATUS "Compiler-RT supported architectures: ${COMPILER_RT_SUPPORTED_ARCH}")
if(ANDROID)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27719.81253.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161213/8e6ce66b/attachment.bin>
More information about the llvm-commits
mailing list