
Currently all of LLDB is being compiled with -Wno-deprecated-declarations. That's not desirable, especially as part of the LLVM monorepo, as we miss deprecation warnings from LLVM and clang. According to the git history, this was first introduced to suppress warnings related to auto_ptr. Since then, other things have been deprecated and gone unnoticed. This patch limits the flag to Host.mm which uses a handful of LSApplication headers that have no replacement. rdar://112040718
22 lines
368 B
CMake
22 lines
368 B
CMake
|
|
remove_module_flags()
|
|
include_directories(..)
|
|
|
|
add_lldb_library(lldbHostMacOSXObjCXX NO_PLUGIN_DEPENDENCIES
|
|
Host.mm
|
|
HostInfoMacOSX.mm
|
|
HostThreadMacOSX.mm
|
|
|
|
LINK_LIBS
|
|
lldbUtility
|
|
${EXTRA_LIBS}
|
|
|
|
LINK_COMPONENTS
|
|
Support
|
|
TargetParser
|
|
)
|
|
|
|
target_compile_options(lldbHostMacOSXObjCXX PRIVATE
|
|
-fno-objc-exceptions
|
|
-Wno-deprecated-declarations)
|