38 lines · plain
1add_lldb_unittest(APITests2 SBCommandInterpreterTest.cpp3 SBLineEntryTest.cpp4 SBMutexTest.cpp5 SBBreakpointClearConditionTest.cpp6 7 SBAPITEST8 9 LINK_LIBS10 liblldb11 )12 13# Build with -Wdocumentation. This relies on the tests including all the API14# headers through API/LLDB.h. It also means that the API tests cannot include15# private headers.16check_cxx_compiler_flag("-Wdocumentation"17 CXX_SUPPORTS_DOCUMENTATION)18if (CXX_SUPPORTS_DOCUMENTATION)19 target_compile_options(APITests20 PRIVATE -Wdocumentation)21endif()22 23# Apply -Wno-documentation-deprecated-sync while we migrate away from24# report_fatal_error in llvm/include/llvm/Support/ErrorHandling.h25# and llvm/include/llvm/Support/Error.h.26# Remove this block of code when the migration is complete.27# See https://github.com/llvm/llvm-project/issues/138914.28check_cxx_compiler_flag("-Wno-documentation-deprecated-sync"29 CXX_SUPPORTS_NO_DOCUMENTATION_DEPRECATED_SYNC)30if (CXX_SUPPORTS_NO_DOCUMENTATION_DEPRECATED_SYNC)31 target_compile_options(APITests32 PRIVATE -Wno-documentation-deprecated-sync)33endif()34 35if(Python3_RPATH)36 set_property(TARGET APITests APPEND PROPERTY BUILD_RPATH "${Python3_RPATH}")37endif()38