Skip to content

Commit 33bb2b2

Browse files
ilya-lavrenovluweizhou2016
authored andcommitted
[FIX]Don't use backtrace under Android
1 parent 7a96450 commit 33bb2b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpu/x64/xbyak/xbyak.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
#endif
6969

7070
// for debug trace in GCC
71-
#if !defined(NDEBUG) && defined(__GNUC__)
71+
#if !defined(NDEBUG) && defined(__GNUC__) && !(defined(__ANDROID__) || defined(ANDROID))
7272
#include <execinfo.h>
7373
#include <map>
7474
#include <sstream>
@@ -2753,7 +2753,7 @@ class CodeGenerator : public CodeArray {
27532753
opModRM(*p1, *p2, (p1->isREG() && p2->isREG() && (p1->getBit() == p2->getBit())), p2->isMEM(), 0x86 | (p1->isBit(8) ? 0 : 1));
27542754
}
27552755

2756-
#if !defined(NDEBUG) && defined(__GNUC__)
2756+
#if !defined(NDEBUG) && defined(__GNUC__) && !(defined(__ANDROID__) || defined(ANDROID))
27572757
std::map<size_t, std::string> debug_traces;
27582758
void debug_trace() {
27592759
static bool enable_trace = std::getenv("ONEDNN_JIT_DUMP") && atoi(std::getenv("ONEDNN_JIT_DUMP")) != 0;

0 commit comments

Comments
 (0)