diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2018-06-12 22:51:20 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2018-06-12 22:51:20 +0000 |
| commit | 5714504ab2a4f8d8f918af8d907210c2f32f6cc2 (patch) | |
| tree | 353a3cb8915322dc93201f504ace2ed059906637 | |
| parent | 82bc8426507d9f5739ac1d4d8332b037825a6037 (diff) | |
| download | bcm5719-llvm-5714504ab2a4f8d8f918af8d907210c2f32f6cc2.tar.gz bcm5719-llvm-5714504ab2a4f8d8f918af8d907210c2f32f6cc2.zip | |
Disable warnings for the generated LLDB wrapper source
Summary:
This source files emits all kind of compiler warnings on different platforms. As the source code
in the file is generated and we therefore can't actually fix the warnings, we might as well disable
them.
Reviewers: aprantl, davide
Reviewed By: davide
Subscribers: davide, mgorny, lldb-commits
Differential Revision: https://reviews.llvm.org/D48096
llvm-svn: 334557
| -rw-r--r-- | lldb/source/API/CMakeLists.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index ebc68662bd6..6a5a3af69a9 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -101,13 +101,12 @@ add_lldb_library(liblldb SHARED Support ) -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() +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() + set_source_files_properties(${LLDB_WRAP_PYTHON} PROPERTIES GENERATED 1) if (CLANG_CL) set_property(SOURCE ${LLDB_WRAP_PYTHON} APPEND_STRING |

