From 32766f1f528a879797b19f90693cb62d042f8e01 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Tue, 1 Aug 2017 18:09:44 -0700 Subject: [PATCH] Allow mips to build. Test: Build mips. Change-Id: Ice2fe1d11b7c628b325ea2ad1fd1252ad8e10668 --- libunwindstack/Android.bp | 9 --------- libunwindstack/include/unwindstack/RegsGetLocal.h | 5 +++++ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/libunwindstack/Android.bp b/libunwindstack/Android.bp index 04c4cfa55..78ae40988 100644 --- a/libunwindstack/Android.bp +++ b/libunwindstack/Android.bp @@ -30,15 +30,6 @@ cc_defaults { enabled: false, }, }, - - arch: { - mips: { - enabled: false, - }, - mips64: { - enabled: false, - }, - }, } cc_library { diff --git a/libunwindstack/include/unwindstack/RegsGetLocal.h b/libunwindstack/include/unwindstack/RegsGetLocal.h index ffec213e8..d1461d86a 100644 --- a/libunwindstack/include/unwindstack/RegsGetLocal.h +++ b/libunwindstack/include/unwindstack/RegsGetLocal.h @@ -97,6 +97,11 @@ inline void RegsGetLocal(Regs* regs) { regs->SetFromRaw(); } +#elif defined(__mips__) + +// Stub to allow mips to build. +void RegsGetLocal(Regs*) {} + #endif } // namespace unwindstack