mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-09 17:28:58 +00:00
Disable stacktrace on android
This commit is contained in:
parent
49ce4891bc
commit
653ce36ccf
1 changed files with 3 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue