[Lldb-commits] [lldb] r374229 - [LLDB] Remove standalone build dep on llvm-strip
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 9 14:06:04 PDT 2019
Author: jdevlieghere
Date: Wed Oct 9 14:06:03 2019
New Revision: 374229
URL: http://llvm.org/viewvc/llvm-project?rev=374229&view=rev
Log:
[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
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=374229&r1=374228&r2=374229&view=diff
==============================================================================
--- lldb/trunk/test/CMakeLists.txt (original)
+++ lldb/trunk/test/CMakeLists.txt Wed Oct 9 14:06:03 2019
@@ -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()
More information about the lldb-commits
mailing list