[PATCH] D78306: [flang] Use LLVM's flags
Michael Kruse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 01:02:21 PDT 2020
Meinersbur added inline comments.
================
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)
----------------
sscalpone wrote:
> 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.
Flang and clang in the same repository gives the unique possibility that with adding a warning flag, I can fix the cause of the warning in flang. But generally, e.g. a new version of gcc emitting new warnings when compiling flang, this is not the case.
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