maarcosrmz wrote:

@efriedma-quic Yes I have. There are two files that cause the build to fail 
with `-Werror=fenv-access`:
* 
[flang/lib/Evaluate/host.cpp](https://github.com/llvm/llvm-project/blob/main/flang/lib/Evaluate/host.cpp)
* 
[llvm/lib/Analysis/ConstantFolding.cpp](https://github.com/llvm/llvm-project/blob/main/llvm/lib/Analysis/ConstantFolding.cpp)

Moreover, as some files include 
[libc/src/__support/FPUtil/FEnvImpl.h](https://github.com/llvm/llvm-project/blob/main/libc/src/__support/FPUtil/FEnvImpl.h),
 it also breaks the build. But this is fixable by adding 
`-DLIBC_COMPILER_HAS_STDC_FENV_ACCESS` when building flang (see #200268), 
although I'm not sure whether that is best-practice.


https://github.com/llvm/llvm-project/pull/199009
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to