Index: src/base/platform/platform-linux.cc |
diff --git a/src/base/platform/platform-linux.cc b/src/base/platform/platform-linux.cc |
index a4b742adc715fb92290907ce06cde29ea1785d54..1323a0dd91efc1751ea17b163f0ff0ae4c3095c6 100644 |
--- a/src/base/platform/platform-linux.cc |
+++ b/src/base/platform/platform-linux.cc |
@@ -72,14 +72,14 @@ bool OS::ArmUsingHardFloat() { |
#define GCC_VERSION (__GNUC__ * 10000 \ |
+ __GNUC_MINOR__ * 100 \ |
+ __GNUC_PATCHLEVEL__) |
-#if GCC_VERSION >= 40600 |
+#if GCC_VERSION >= 40600 && !defined(__clang__) |
#if defined(__ARM_PCS_VFP) |
return true; |
#else |
return false; |
#endif |
-#elif GCC_VERSION < 40500 |
+#elif GCC_VERSION < 40500 && !defined(__clang__) |
return false; |
#else |
@@ -89,7 +89,7 @@ bool OS::ArmUsingHardFloat() { |
!defined(__VFP_FP__) |
return false; |
#else |
-#error "Your version of GCC does not report the FP ABI compiled for." \ |
+#error "Your version of compiler does not report the FP ABI compiled for." \ |
"Please report it on this issue" \ |
"http://code.google.com/p/v8/issues/detail?id=2140" |