[Lldb-commits] [lldb] f3250da - [lldb/Fuzzer] Create ninja target for target fuzzer
Chelsea Cassanova via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 15 11:56:02 PDT 2022
Author: Chelsea Cassanova
Date: 2022-06-15T14:55:43-04:00
New Revision: f3250da1b94fed260ea5da8264ba366c42aaf34c
URL: https://github.com/llvm/llvm-project/commit/f3250da1b94fed260ea5da8264ba366c42aaf34c
DIFF: https://github.com/llvm/llvm-project/commit/f3250da1b94fed260ea5da8264ba366c42aaf34c.diff
LOG: [lldb/Fuzzer] Create ninja target for target fuzzer
Create a ninja target for running the LLDB target fuzzer.
Currently the ninja target for the fuzzer will build the fuzzer without
running it. This allows the fuzzer to be built and run.
Differential revision: https://reviews.llvm.org/D127882
Added:
Modified:
lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
Removed:
################################################################################
diff --git a/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt b/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
index 2c5b09a257110..7f66580400031 100644
--- a/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
+++ b/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
@@ -15,3 +15,9 @@ if(TARGET lldb-target-fuzzer)
lldbFuzzerUtils
)
endif()
+
+add_custom_target(fuzz-lldb-target
+ COMMENT "Running the LLDB target fuzzer..."
+ COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && $<TARGET_FILE:lldb-target-fuzzer>
+ USES_TERMINAL
+ )
More information about the lldb-commits
mailing list