gallium/util: Don't stub u_debug_stack on Android
authorStefan Schake <stschake@gmail.com>
Sun, 15 Apr 2018 22:45:16 +0000 (00:45 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Fri, 20 Apr 2018 15:49:37 +0000 (18:49 +0300)
The fallback path for no libunwind ends up being stubs for Android.
Don't compile them in so we can provide our own implementation.

Signed-off-by: Stefan Schake <stschake@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/gallium/auxiliary/util/u_debug_stack.c

index 846f64843111cb0c3ac06f88bce12df9925988c5..b1d4cfea6c14e91df8f56e0db4c834f864bc3438 100644 (file)
@@ -193,7 +193,8 @@ debug_backtrace_print(FILE *f,
             frame_ip(&backtrace[i]));
    }
 }
-
+#elif defined(ANDROID)
+   /* Not implemented here; see u_debug_stack_android.cpp */
 #else /* ! HAVE_LIBUNWIND */
 
 #if defined(PIPE_OS_WINDOWS)