Treat warnings as errors all over LLDB when enabled. Defaults to OFF.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 36411 Build 36410: arc lint + arc unit
Event Timeline
lldb/cmake/modules/LLDBConfig.cmake | ||
---|---|---|
318 | I copied the flag from LLVM. Is it the right one for MSVC? |
So, why doesn't LLVM_ENABLE_WERROR suffice? It looks like that ought to work even in standalone builds...
LLVM_ENABLE_WERROR affects the entire build tree. If another subproject causes a warning the build fails. In a way, you are right that this is sufficient, because the no-warnings policy seems to work well upstream.
The issue I was trying to solve is, that we can't use the setting with some external subprojects, because they are not strictly warning free. But then it may be better to have downstream. I agree.
I copied the flag from LLVM. Is it the right one for MSVC?