From 3ba71f1be1fb986e634debd8d17a69d2bb4c4eb7 Mon Sep 17 00:00:00 2001 From: Chelsea Cassanova Date: Wed, 15 Jun 2022 17:29:08 -0400 Subject: [PATCH] Reland "[lldb/Fuzzer] Create ninja target for target fuzzer" This reverts commit b10579d0b519571fa7487399d82e1e809fbfe6cb. Make sure that the lldb-target-fuzzer exists before adding the custom fuzz-lldb-target. --- lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt b/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt index 2c5b09a..06df06c 100644 --- a/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt +++ b/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt @@ -14,4 +14,10 @@ if(TARGET lldb-target-fuzzer) liblldb lldbFuzzerUtils ) + + add_custom_target(fuzz-lldb-target + COMMENT "Running the LLDB target fuzzer..." + COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && $ + USES_TERMINAL + ) endif() -- 2.7.4