mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 20:54:40 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user