diff options
author | Zachary Turner <zturner@google.com> | 2016-10-05 17:07:16 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-10-05 17:07:16 +0000 |
commit | d6ef28462bd17c39edef192a1298060910b0e15b (patch) | |
tree | 5fff452a73d463b459accaa7d0a830e8ced85adb /lldb/source/API | |
parent | aad15838770cb1f7d40365a8e1cf0643f7e27b2f (diff) | |
download | bcm5719-llvm-d6ef28462bd17c39edef192a1298060910b0e15b.tar.gz bcm5719-llvm-d6ef28462bd17c39edef192a1298060910b0e15b.zip |
Disable warnings in LLDBWrapPython.cpp with -Werror.
When -Werror is used, we don't have control over the generated
code from SWIG, and it often has warnings. Just disable them for
this file when -Werror is used, they are usually not important
anyway.
Differential revision: https://reviews.llvm.org/D25246
llvm-svn: 283343
Diffstat (limited to 'lldb/source/API')
-rw-r--r-- | lldb/source/API/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index ea3d21a0dea..9701dfc64f8 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -78,6 +78,14 @@ add_lldb_library(liblldb SHARED ${LLDB_WRAP_PYTHON} ) +if (LLVM_ENABLE_WERROR) + if (MSVC) + set_property(SOURCE ${LLDB_WRAP_PYTHON} APPEND_STRING PROPERTY COMPILE_FLAGS " /W0") + else() + set_property(SOURCE ${LLDB_WRAP_PYTHON} APPEND_STRING PROPERTY COMPILE_FLAGS " -w") + endif() +endif() + # This should not be part of LLDBDependencies.cmake, because we don't # want every single library taking a dependency on the script interpreters. target_link_libraries(liblldb PRIVATE |