Skip to content

Commit db90b39

Browse files
committed
[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. llvm-svn: 372799
1 parent 9f0f36e commit db90b39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/test/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ if(CMAKE_HOST_APPLE)
103103
COMMENT "Copying the system debugserver to LLDB's binaries directory for testing.")
104104
# The custom target for the system debugserver has no install target, so we
105105
# need to remove it from the LLVM_DISTRIBUTION_COMPONENTS list.
106-
list(REMOVE_ITEM LLVM_DISTRIBUTION_COMPONENTS debugserver)
107-
set(LLVM_DISTRIBUTION_COMPONENTS ${LLVM_DISTRIBUTION_COMPONENTS} PARENT_SCOPE)
106+
if (LLVM_DISTRIBUTION_COMPONENTS)
107+
list(REMOVE_ITEM LLVM_DISTRIBUTION_COMPONENTS debugserver)
108+
set(LLVM_DISTRIBUTION_COMPONENTS ${LLVM_DISTRIBUTION_COMPONENTS} PARENT_SCOPE)
109+
endif()
108110
message(STATUS "LLDB tests use out-of-tree debugserver: ${system_debugserver_path}")
109111
list(APPEND LLDB_TEST_COMMON_ARGS --out-of-tree-debugserver)
110112
elseif(TARGET debugserver)

0 commit comments

Comments
 (0)