[Lldb-commits] [lldb] r191385 - Handle ePathTypePythonDir even in the case of LLDB_DISABLE_PYTHON,
Joerg Sonnenberger
joerg at bec.de
Wed Sep 25 10:52:18 PDT 2013
Author: joerg
Date: Wed Sep 25 12:52:18 2013
New Revision: 191385
URL: http://llvm.org/viewvc/llvm-project?rev=191385&view=rev
Log:
Handle ePathTypePythonDir even in the case of LLDB_DISABLE_PYTHON,
otherwise -Werror builds may fail.
Modified:
lldb/trunk/source/Host/common/Host.cpp
Modified: lldb/trunk/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Host.cpp?rev=191385&r1=191384&r2=191385&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Wed Sep 25 12:52:18 2013
@@ -1055,8 +1055,11 @@ Host::GetLLDBPath (PathType path_type, F
}
break;
-#ifndef LLDB_DISABLE_PYTHON
- case ePathTypePythonDir:
+#ifdef LLDB_DISABLE_PYTHON
+ case ePathTypePythonDir:
+ return false;
+#else
+ case ePathTypePythonDir:
{
static ConstString g_lldb_python_dir;
if (!g_lldb_python_dir)
More information about the lldb-commits
mailing list