[Lldb-commits] [PATCH] D25246: Disable warnings in LLDBWrapPython.cpp when LLVM_ENABLE_WERROR is used
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 5 10:16:18 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL283343: Disable warnings in LLDBWrapPython.cpp with -Werror. (authored by zturner).
Changed prior to commit:
https://reviews.llvm.org/D25246?vs=73510&id=73665#toc
Repository:
rL LLVM
https://reviews.llvm.org/D25246
Files:
lldb/trunk/source/API/CMakeLists.txt
Index: lldb/trunk/source/API/CMakeLists.txt
===================================================================
--- lldb/trunk/source/API/CMakeLists.txt
+++ lldb/trunk/source/API/CMakeLists.txt
@@ -78,6 +78,14 @@
${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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25246.73665.patch
Type: text/x-patch
Size: 679 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20161005/0f605d69/attachment-0001.bin>
More information about the lldb-commits
mailing list