summaryrefslogtreecommitdiffstats
path: root/lldb/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/cmake')
-rw-r--r--lldb/cmake/modules/LLDBConfig.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 043b3260484..66ba12607a4 100644
--- a/lldb/cmake/modules/LLDBConfig.cmake
+++ b/lldb/cmake/modules/LLDBConfig.cmake
@@ -401,3 +401,12 @@ if(LLDB_USING_LIBSTDCXX)
"- ignore this warning and accept occasional instability")
endif()
endif()
+
+if(MSVC)
+ set(LLDB_USE_BUILTIN_DEMANGLER ON)
+else()
+ option(LLDB_USE_BUILTIN_DEMANGLER "Use lldb's builtin demangler instead of the system one" ON)
+endif()
+if(LLDB_USE_BUILTIN_DEMANGLER)
+ add_definitions(-DLLDB_USE_BUILTIN_DEMANGLER)
+endif()
OpenPOWER on IntegriCloud