diff options
-rw-r--r-- | include/llvm/System/FEnv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/System/FEnv.h b/include/llvm/System/FEnv.h index 57097d2f57..042e43928b 100644 --- a/include/llvm/System/FEnv.h +++ b/include/llvm/System/FEnv.h @@ -21,6 +21,12 @@ #include <fenv.h> #endif +// FIXME: Clang's #include handling apparently doesn't work for libstdc++'s +// fenv.h; see PR6907 for details. +#if defined(__clang__) && defined(_GLIBCXX_FENV_H) +#undef HAVE_FENV_H +#endif + namespace llvm { namespace sys { |