[compiler-rt] r289749 - Fix simple cmake error when COMPILER_RT_SUPPORTED_ARCH is empty.

Marcos Pividori via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 17:21:04 PST 2016


Author: mpividori
Date: Wed Dec 14 19:21:04 2016
New Revision: 289749

URL: http://llvm.org/viewvc/llvm-project?rev=289749&view=rev
Log:
Fix simple cmake error when COMPILER_RT_SUPPORTED_ARCH is empty.

Differential Revision: https://reviews.llvm.org/D27719

Modified:
    compiler-rt/trunk/cmake/config-ix.cmake

Modified: compiler-rt/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/config-ix.cmake?rev=289749&r1=289748&r2=289749&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/config-ix.cmake Wed Dec 14 19:21:04 2016
@@ -417,7 +417,9 @@ endif()
 
 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)




More information about the llvm-commits mailing list