aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-11 22:30:59 +0000
committerDan Gohman <gohman@apple.com>2010-10-11 22:30:59 +0000
commitd3d2ddc78ea901a5b11123374f50523ea86428cb (patch)
tree0789b34a4512b7d2cdcfbb06a6d9b756a58331b1 /include/llvm/System
parente58d72009a5ea9428e41309c56bfe3f2ce7b8160 (diff)
downloadexternal_llvm-d3d2ddc78ea901a5b11123374f50523ea86428cb.zip
external_llvm-d3d2ddc78ea901a5b11123374f50523ea86428cb.tar.gz
external_llvm-d3d2ddc78ea901a5b11123374f50523ea86428cb.tar.bz2
Clang's #include handling apparently doesn't work for libstdc++'s
fenv.h. See PR6907 for details. Work around this in FEnv.h to fix the seflhost build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/FEnv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/System/FEnv.h b/include/llvm/System/FEnv.h
index 57097d2..042e439 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 {