Merge "Use ARCH_ARM_HAVE_NEON define instead of cpuinfo to detect NEON support."
diff --git a/lib/Support/TargetCompilerConfigs.cpp b/lib/Support/TargetCompilerConfigs.cpp
index 948e836..102b031 100644
--- a/lib/Support/TargetCompilerConfigs.cpp
+++ b/lib/Support/TargetCompilerConfigs.cpp
@@ -67,12 +67,16 @@
}
}
- if (pEnableNEON && Features.count("neon") && Features["neon"]) {
+#if defined(ARCH_ARM_HAVE_NEON)
+ if (pEnableNEON) {
pAttributes.push_back("+neon");
} else {
+#endif
pAttributes.push_back("-neon");
pAttributes.push_back("-neonfp");
+#if defined(ARCH_ARM_HAVE_NEON)
}
+#endif
if (!getProperty("debug.rs.arm-no-hwdiv")) {
if (Features.count("hwdiv-arm") && Features["hwdiv-arm"])