Reviewers: ulan, jochen,
Description:
ARM64: Fix native builds
On ARM64, HasListItem() isn't used, so the compiler complains. Use the
preprocessor to remove it from ARM64 builds.
BUG=
Please review this at https://codereview.chromium.org/285463003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+3, -0 lines):
M src/cpu.cc
Index: src/cpu.cc
diff --git a/src/cpu.cc b/src/cpu.cc
index
3baae64f6d74b98d0917ae4e1829b4eb64a2c5cb..8d9afd84ae444c1288d7ad3205ea51293932638a
100644
--- a/src/cpu.cc
+++ b/src/cpu.cc
@@ -206,6 +206,7 @@ class CPUInfo V8_FINAL BASE_EMBEDDED {
size_t datalen_;
};
+#if V8_HOST_ARCH_ARM || V8_HOST_ARCH_MIPS
// Checks that a space-separated list of items contains one given 'item'.
static bool HasListItem(const char* list, const char* item) {
@@ -231,6 +232,8 @@ static bool HasListItem(const char* list, const char*
item) {
return false;
}
+#endif // V8_HOST_ARCH_ARM || V8_HOST_ARCH_MIPS
+
#endif // V8_OS_LINUX
#endif // V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.