diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-06-27 15:04:42 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-06-27 15:04:42 +0000 |
| commit | 61220ef405651ee8ab79196e2ddb02873b9fab44 (patch) | |
| tree | b8a27b4666044795b9f2f488fab6b2f88a8ac10e | |
| parent | 3f32b9be7f06fa1d89b77f34baacfa7607a3057a (diff) | |
| download | bcm5719-llvm-61220ef405651ee8ab79196e2ddb02873b9fab44.tar.gz bcm5719-llvm-61220ef405651ee8ab79196e2ddb02873b9fab44.zip | |
[cmake] When Python is disabled for LLDB, don't try to install the
python bindings.
For example, this prevents errors on systems that disable python because
the system python isn't available. Without this, we still try to install
things and get install errors when that doesn't work.
llvm-svn: 211899
| -rw-r--r-- | lldb/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index 4cfa1d9e022..f6eb3873db1 100644 --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -315,7 +315,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LLDB_COMPILE_FLAGS}") #add_subdirectory(include) add_subdirectory(docs) -if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") +if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows" AND NOT LLDB_DISABLE_PYTHON) add_subdirectory(scripts) endif() add_subdirectory(source) |

