aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Clarke <leonclarke@google.com>2010-03-12 14:20:38 +0000
committerLeon Clarke <leonclarke@google.com>2010-03-12 14:20:38 +0000
commit144045c95df339bcbcf35374401289e1eefc1d85 (patch)
tree7c5d00633cacefaf3db59bc491148142549ff14d
parentb58e44ab6ae3bb5ee81ca10bf101289abb4fcea4 (diff)
downloadv8-144045c95df339bcbcf35374401289e1eefc1d85.tar.gz
Disable backtraces on android, which will enable mksnapshot
to build when android is built on tiger. Change-Id: Idc9bd51a69cf1308fa5ab64862ac6d0b352025af
-rw-r--r--src/platform-macos.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/platform-macos.cc b/src/platform-macos.cc
index e379ae22..27f01410 100644
--- a/src/platform-macos.cc
+++ b/src/platform-macos.cc
@@ -278,6 +278,12 @@ double OS::LocalTimeOffset() {
int OS::StackWalk(Vector<StackFrame> frames) {
+#ifdef ANDROID
+ // For some reason the weak linkage doesn't work when building mksnapshot
+ // for android on macos. Just bail out as if we're on 10.4. We don't need
+ // stack walking for mksnapshot.
+ return 0;
+#else
// If weak link to execinfo lib has failed, ie because we are on 10.4, abort.
if (backtrace == NULL)
return 0;
@@ -309,6 +315,7 @@ int OS::StackWalk(Vector<StackFrame> frames) {
free(symbols);
return frames_count;
+#endif // ANDROID
}