diff --git a/lldb/source/Host/macosx/objcxx/CMakeLists.txt b/lldb/source/Host/macosx/objcxx/CMakeLists.txt index e55b094c0c305c..9db24f30641851 100644 --- a/lldb/source/Host/macosx/objcxx/CMakeLists.txt +++ b/lldb/source/Host/macosx/objcxx/CMakeLists.txt @@ -14,3 +14,5 @@ add_lldb_library(lldbHostMacOSXObjCXX LINK_COMPONENTS Support ) + +target_compile_options(lldbHostMacOSXObjCXX PRIVATE -fno-objc-exceptions) diff --git a/lldb/source/Plugins/Platform/MacOSX/objcxx/CMakeLists.txt b/lldb/source/Plugins/Platform/MacOSX/objcxx/CMakeLists.txt index 946ff0a64c26f6..7d094a5865c43e 100644 --- a/lldb/source/Plugins/Platform/MacOSX/objcxx/CMakeLists.txt +++ b/lldb/source/Plugins/Platform/MacOSX/objcxx/CMakeLists.txt @@ -15,3 +15,6 @@ add_lldb_library(lldbPluginPlatformMacOSXObjCXX Object Support ) + + +target_compile_options(lldbPluginPlatformMacOSXObjCXX PRIVATE -fno-objc-exceptions)