[Lldb-commits] [lldb] r372799 - [CMake] Don't modify LLVM_DISTRIBUTION_COMPONENTS if it's not set
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 24 18:23:06 PDT 2019
Author: jdevlieghere
Date: Tue Sep 24 18:23:05 2019
New Revision: 372799
URL: http://llvm.org/viewvc/llvm-project?rev=372799&view=rev
Log:
[CMake] Don't modify LLVM_DISTRIBUTION_COMPONENTS if it's not set
Don't try to remove debugserver from LLVM_DISTRIBUTION_COMPONENTS if the
list is not set.
Modified:
lldb/trunk/test/CMakeLists.txt
Modified: lldb/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/CMakeLists.txt?rev=372799&r1=372798&r2=372799&view=diff
==============================================================================
--- lldb/trunk/test/CMakeLists.txt (original)
+++ lldb/trunk/test/CMakeLists.txt Tue Sep 24 18:23:05 2019
@@ -103,8 +103,10 @@ if(CMAKE_HOST_APPLE)
COMMENT "Copying the system debugserver to LLDB's binaries directory for testing.")
# The custom target for the system debugserver has no install target, so we
# need to remove it from the LLVM_DISTRIBUTION_COMPONENTS list.
- list(REMOVE_ITEM LLVM_DISTRIBUTION_COMPONENTS debugserver)
- set(LLVM_DISTRIBUTION_COMPONENTS ${LLVM_DISTRIBUTION_COMPONENTS} PARENT_SCOPE)
+ if (LLVM_DISTRIBUTION_COMPONENTS)
+ list(REMOVE_ITEM LLVM_DISTRIBUTION_COMPONENTS debugserver)
+ set(LLVM_DISTRIBUTION_COMPONENTS ${LLVM_DISTRIBUTION_COMPONENTS} PARENT_SCOPE)
+ endif()
message(STATUS "LLDB tests use out-of-tree debugserver: ${system_debugserver_path}")
list(APPEND LLDB_TEST_COMMON_ARGS --out-of-tree-debugserver)
elseif(TARGET debugserver)
More information about the lldb-commits
mailing list