[lldb/fuzzer] Moving target fuzzer into separate subdirectory

Moving lldb-target-fuzzer into its own subdirectory for better
organization and modularity.

Differential revision: https://reviews.llvm.org/D126507
This commit is contained in:
Chelsea Cassanova 2022-05-26 16:57:57 -07:00 committed by Jonas Devlieghere
parent d1440ccaa5
commit 5451c4b4fb
No known key found for this signature in database
GPG Key ID: 49CC0BD90FDEED4D
3 changed files with 19 additions and 18 deletions

View File

@ -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()

View File

@ -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()

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include <utils/TempFile.h>
#include "utils/TempFile.h"
#include "lldb/API/SBDebugger.h"
#include "lldb/API/SBTarget.h"