[Lldb-commits] [PATCH] D126507: [lldb/fuzzer] Moving target fuzzer into separate subdirectory
Chelsea Cassanova via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu May 26 16:49:56 PDT 2022
cassanova created this revision.
cassanova added reviewers: mib, JDevlieghere.
cassanova added a project: LLDB.
Herald added a subscriber: mgorny.
Herald added a project: All.
cassanova requested review of this revision.
Herald added a subscriber: lldb-commits.
Moving lldb-target-fuzzer into its own subdirectory
for better organization and modularity.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D126507
Files:
lldb/tools/lldb-fuzzer/CMakeLists.txt
lldb/tools/lldb-fuzzer/lldb-target-fuzzer.cpp
lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
lldb/tools/lldb-fuzzer/lldb-target-fuzzer/lldb-target-fuzzer.cpp
Index: lldb/tools/lldb-fuzzer/lldb-target-fuzzer/lldb-target-fuzzer.cpp
===================================================================
--- lldb/tools/lldb-fuzzer/lldb-target-fuzzer/lldb-target-fuzzer.cpp
+++ lldb/tools/lldb-fuzzer/lldb-target-fuzzer/lldb-target-fuzzer.cpp
@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
-#include <utils/TempFile.h>
+#include "utils/TempFile.h"
#include "lldb/API/SBDebugger.h"
#include "lldb/API/SBTarget.h"
Index: lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
===================================================================
--- /dev/null
+++ lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
@@ -0,0 +1,17 @@
+set(LLVM_LINK_COMPONENTS
+ Support
+ )
+
+add_llvm_fuzzer(lldb-target-fuzzer
+ EXCLUDE_FROM_ALL
+ lldb-target-fuzzer.cpp
+ )
+
+if(TARGET lldb-target-fuzzer)
+ target_include_directories(lldb-target-fuzzer PRIVATE ..)
+ target_link_libraries(lldb-target-fuzzer
+ PRIVATE
+ liblldb
+ lldbFuzzerUtils
+ )
+endif()
Index: lldb/tools/lldb-fuzzer/CMakeLists.txt
===================================================================
--- lldb/tools/lldb-fuzzer/CMakeLists.txt
+++ lldb/tools/lldb-fuzzer/CMakeLists.txt
@@ -1,18 +1,2 @@
+add_subdirectory(lldb-target-fuzzer)
add_subdirectory(utils)
-
-set(LLVM_LINK_COMPONENTS
- Support
- )
-
-add_llvm_fuzzer(lldb-target-fuzzer
- EXCLUDE_FROM_ALL
- lldb-target-fuzzer.cpp
- )
-
-if(TARGET lldb-target-fuzzer)
- target_link_libraries(lldb-target-fuzzer
- PRIVATE
- liblldb
- lldbFuzzerUtils
- )
-endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126507.432414.patch
Type: text/x-patch
Size: 1614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220526/2909b4bd/attachment.bin>
More information about the lldb-commits
mailing list