You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #1130, a new
C++ flag was added: `-Wno-maybe-uninitialized`. This flag is
GCC-specific, i.e. it is not supported by e.g. Clang. The following
warning is issued by Clang when trying to use it:
```
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
```
This flag was added for all compilers for which
`LLVM_COMPILER_IS_GCC_COMPATIBLE` is `true`. With Clang being considered as
GCC-compatible [1] and `-Werror` being set by default in LLVM Flang, the
aforementioned change causes build failures when using Clang.
This patch works around it by making sure that this flag is only added
when the compiler used to build Flang does support it.
[1] See the current implementation of DetermineGCCCompatible.cmake
0 commit comments