[PATCH] D57521: [CMake] External compiler-rt-configure requires LLVMTestingSupport when including tests
Stefan Gränitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 31 09:38:06 PST 2019
sgraenitz updated this revision to Diff 184531.
sgraenitz added a comment.
Polishing
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57521/new/
https://reviews.llvm.org/D57521
Files:
runtime/CMakeLists.txt
Index: runtime/CMakeLists.txt
===================================================================
--- runtime/CMakeLists.txt
+++ runtime/CMakeLists.txt
@@ -58,12 +58,16 @@
endif()
endforeach()
+ set(compiler_rt_configure_deps)
if(TARGET cxx-headers)
- set(COMPILER_RT_LIBCXX_DEPENDENCY "cxx-headers")
+ list(APPEND compiler_rt_configure_deps "cxx-headers")
+ endif()
+ if(LLVM_INCLUDE_TESTS)
+ list(APPEND compiler_rt_configure_deps LLVMTestingSupport)
endif()
ExternalProject_Add(compiler-rt
- DEPENDS llvm-config clang ${COMPILER_RT_LIBCXX_DEPENDENCY}
+ DEPENDS llvm-config clang ${compiler_rt_configure_deps}
PREFIX ${COMPILER_RT_PREFIX}
SOURCE_DIR ${COMPILER_RT_SRC_ROOT}
STAMP_DIR ${STAMP_DIR}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57521.184531.patch
Type: text/x-patch
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190131/ab7097fc/attachment.bin>
More information about the llvm-commits
mailing list