diff options
author | WenHan Gu <Wenhan.gu@mediatek.com> | 2013-11-05 23:39:32 +0800 |
---|---|---|
committer | Logan Chien <tzuhsiang.chien@gmail.com> | 2013-12-22 22:11:17 +0800 |
commit | 650826bbd45c0f81771f0df3c94fdf227f6f013f (patch) | |
tree | 40d9c6dc3da73accbeb80848c0bd03c314a4965f | |
parent | 95255f44a51bbd193098dd0f7d9048c1418974cc (diff) | |
download | llvm-650826bbd45c0f81771f0df3c94fdf227f6f013f.tar.gz |
[ndk][arm] Conditional compile fenv.h for NDK headers.
NDK armeabi default use -msoft-float, and it cannot truely use
fenv.h since it has vmrs,vmsr inline asm.
Change-Id: If49045f2bfed0f33f7dc9156d5eea3bda89ad90a
-rw-r--r-- | include/llvm/Support/FEnv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/FEnv.h b/include/llvm/Support/FEnv.h index 8560ee0a8af..58b81a1799e 100644 --- a/include/llvm/Support/FEnv.h +++ b/include/llvm/Support/FEnv.h @@ -27,6 +27,11 @@ #undef HAVE_FENV_H #endif +// NDK fenv.h implementation has vmrs, vmsr that -msoft-float cannot compile. +#if defined(__ANDROID__) && defined(__arm__) && defined(__SOFTFP__) +#undef HAVE_FENV_H +#endif + namespace llvm { namespace sys { |