Disable stacktrace on android

This commit is contained in:
daquexian 2020-01-28 13:48:24 +08:00 committed by Changming Sun
parent 49ce4891bc
commit 653ce36ccf

View file

@ -3,7 +3,9 @@
#include "core/common/common.h"
#ifndef __ANDROID__
#include <execinfo.h>
#endif
#include <vector>
namespace onnxruntime {
@ -11,7 +13,7 @@ namespace onnxruntime {
std::vector<std::string> GetStackTrace() {
std::vector<std::string> stack;
#ifndef NDEBUG
#if !defined(NDEBUG) && !defined(__ANDROID__)
constexpr int kCallstackLimit = 64; // Maximum depth of callstack
void* array[kCallstackLimit];