diff options
| author | Joerg Sonnenberger <joerg@bec.de> | 2013-09-25 17:52:18 +0000 |
|---|---|---|
| committer | Joerg Sonnenberger <joerg@bec.de> | 2013-09-25 17:52:18 +0000 |
| commit | c75987637b3d9df2ac1bb4cb5dacf0e21ff1f7b9 (patch) | |
| tree | c176eb8a397aa48314d209c026f199dbe965a795 /lldb/source/Host/common/Host.cpp | |
| parent | 7278edc5b46cffa142fa5bb09dd55206a88a8eac (diff) | |
| download | bcm5719-llvm-c75987637b3d9df2ac1bb4cb5dacf0e21ff1f7b9.tar.gz bcm5719-llvm-c75987637b3d9df2ac1bb4cb5dacf0e21ff1f7b9.zip | |
Handle ePathTypePythonDir even in the case of LLDB_DISABLE_PYTHON,
otherwise -Werror builds may fail.
llvm-svn: 191385
Diffstat (limited to 'lldb/source/Host/common/Host.cpp')
| -rw-r--r-- | lldb/source/Host/common/Host.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index a415bad3a3c..7ac33801612 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -1055,8 +1055,11 @@ Host::GetLLDBPath (PathType path_type, FileSpec &file_spec) } 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) |

