[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
       
    Wed Dec 14 17:31:22 PST 2016
    
    
  
This revision was automatically updated to reflect the committed changes.
Closed by commit rL289749: Fix simple cmake error when COMPILER_RT_SUPPORTED_ARCH is empty. (authored by mpividori).
Changed prior to commit:
  https://reviews.llvm.org/D27719?vs=81253&id=81502#toc
Repository:
  rL LLVM
https://reviews.llvm.org/D27719
Files:
  compiler-rt/trunk/cmake/config-ix.cmake
Index: compiler-rt/trunk/cmake/config-ix.cmake
===================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake
+++ compiler-rt/trunk/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.81502.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161215/763e442d/attachment.bin>
    
    
More information about the llvm-commits
mailing list