[LLDB] Remove standalone build dep on llvm-strip

When building standalone, since llvm-strip is a symlink, it is created
using add_custom_command/add_custom_target which cannot be exported, and
thus cannot be depended on by lldb.

Patch by: Gwen Mittertreiner

Differential revision: https://reviews.llvm.org/D68614

llvm-svn: 374229
This commit is contained in:
Jonas Devlieghere 2019-10-09 21:06:03 +00:00
parent e7bfce7863
commit 988ad41948
1 changed files with 6 additions and 1 deletions

View File

@ -58,9 +58,14 @@ add_lldb_test_dependency(
llvm-mc
llvm-objcopy
llvm-readobj
llvm-strip
)
# Since llvm-strip is a symlink created by add_custom_target, it
# doesn't expose an export target when building standalone.
if(NOT LLDB_BUILT_STANDALONE)
add_lldb_test_dependency(llvm-strip)
endif()
if(TARGET lld)
add_lldb_test_dependency(lld)
else()