[PATCH] D87774: [flang] Introduce DiagnosticConsumer classes in libflangFrontend

Andrzej Warzynski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 24 02:23:55 PDT 2020


awarzynski added a comment.

In D87774#2287927 <https://reviews.llvm.org/D87774#2287927>, @sameeranjoshi wrote:

> Thanks for working on it.
> Few comments inline:
>
> 1. For an out-of-tree build, I see `check-flang` target failing with
>
>   /unittests/Frontend/CompilerInstanceTest.cpp:17:10: fatal error: filesystem: No such file or directory
>    #include <filesystem>
>             ^~~~~~~~~~~~
>
> I used gcc/g++ 7.5 version.
> I haven't checked in-tree still, and others/bots might have checked it.

I haven't been able to reproduce it, but note that `filesystem` is a C++17 header. AFAIK, in GCC-7 you have to use `<experimental/filesystem>` instead of `<filesystem>`. This suggests README.md should be updated: https://github.com/llvm/llvm-project/blob/master/flang/README.md#supported-c-compilers (we probably need an RFC for this). Since this `#include` was introduced elsewhere, I suggest that we move this discussion either to Slack or flang-dev.

> 2. Either the documentation comments are wrong or code.
>
> `README` mentions `DBUILD_FLANG_NEW_DRIVER` where as cmake ignores the flag for me.
> Whereas, `CMakeLists.txt` mentions `FLANG_BUILD_NEW_DRIVER`.

Sorry, that's an unfortunate typo. Fixed here: https://github.com/llvm/llvm-project/commit/27da2875070ac00f6cd9f8040c6f994aca915406


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87774



More information about the cfe-commits mailing list