[Lldb-commits] [PATCH] D128450: [lldb/Fuzzer] Have target fuzzer write artifacts to specific directory
Chelsea Cassanova via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 23 08:44:52 PDT 2022
cassanova created this revision.
cassanova added reviewers: JDevlieghere, mib.
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.
This makes the LLDB target fuzzer write its fuzzer artifacts to its own directory in the build directory. It also adds an artifact prefix to make it easier to tell which fuzzer wrote the artifact.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128450
Files:
lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
Index: lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
===================================================================
--- lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
+++ lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
@@ -17,7 +17,9 @@
add_custom_target(fuzz-lldb-target
COMMENT "Running the LLDB target fuzzer..."
- COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && $<TARGET_FILE:lldb-target-fuzzer>
+ COMMAND mkdir -p ${CMAKE_BINARY_DIR}/fuzzer-artifacts/target-artifacts &&
+ cd ${CMAKE_BINARY_DIR}/fuzzer-artifacts/target-artifacts
+ && $<TARGET_FILE:lldb-target-fuzzer> -artifact_prefix=target-
USES_TERMINAL
)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128450.439421.patch
Type: text/x-patch
Size: 685 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220623/155344f7/attachment.bin>
More information about the lldb-commits
mailing list