From 144045c95df339bcbcf35374401289e1eefc1d85 Mon Sep 17 00:00:00 2001 From: Leon Clarke Date: Fri, 12 Mar 2010 14:20:38 +0000 Subject: Disable backtraces on android, which will enable mksnapshot to build when android is built on tiger. Change-Id: Idc9bd51a69cf1308fa5ab64862ac6d0b352025af --- src/platform-macos.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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 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 frames) { free(symbols); return frames_count; +#endif // ANDROID } -- cgit v1.2.3