Fix build with LLVM_DISABLE_PYTHON
authorEd Maste <emaste@freebsd.org>
Tue, 2 Jul 2013 19:30:52 +0000 (19:30 +0000)
committerEd Maste <emaste@freebsd.org>
Tue, 2 Jul 2013 19:30:52 +0000 (19:30 +0000)
llvm-svn: 185466

lldb/source/Host/common/Host.cpp

index fbb6527..14fcce3 100644 (file)
@@ -995,6 +995,7 @@ Host::GetLLDBPath (PathType path_type, FileSpec &file_spec)
         }
         break;
 
+#ifndef LLDB_DISABLE_PYTHON
     case ePathTypePythonDir:                
         {
             static ConstString g_lldb_python_dir;
@@ -1037,7 +1038,8 @@ Host::GetLLDBPath (PathType path_type, FileSpec &file_spec)
             return file_spec.GetDirectory();
         }
         break;
-    
+#endif
+
     case ePathTypeLLDBSystemPlugins:    // System plug-ins directory
         {
 #if defined (__APPLE__)