[PATCH] D78306: [flang] Use LLVM's flags

Steve Scalpone via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 16:52:59 PDT 2020


sscalpone added a comment.

Please make sure LLVM_ENABLE_WERROR,  LLVM_ENABLE_PEDANTIC, etc work for out-of-tree builds.



================
Comment at: flang/CMakeLists.txt:62
   endif()
+  option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON)
+  option(LLVM_ENABLE_WERROR "Fail and stop if a warning is triggered." ON)
----------------
Meinersbur wrote:
> ChinouneMehdi wrote:
> > `LLVM_ENABLE_WARNINGS` is enabled by default.
> Projects having Werror enabled by default one of the reasons why it is hard to implement new warnings. Please don't.
> 
> For instance, I fixed false-negative warnings in Clang. The patch was reverted because it broke the Chrome build.
Flang is built in tree with Clang, so such a change would not escape.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78306/new/

https://reviews.llvm.org/D78306





More information about the llvm-commits mailing list