Browse Source

LibJS: Don't try to use backtrace(3) on Android below API level 33

Andrew Kaster 1 year ago
parent
commit
26e5c20cfa
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Userland/Libraries/LibJS/JIT/NativeExecutable.cpp

+ 4 - 0
Userland/Libraries/LibJS/JIT/NativeExecutable.cpp

@@ -17,6 +17,10 @@
 #    define EXECINFO_BACKTRACE
 #    define EXECINFO_BACKTRACE
 #endif
 #endif
 
 
+#if defined(AK_OS_ANDROID) && (__ANDROID_API__ < 33)
+#    undef EXECINFO_BACKTRACE
+#endif
+
 namespace JS::JIT {
 namespace JS::JIT {
 
 
 NativeExecutable::NativeExecutable(void* code, size_t size, Vector<BytecodeMapping> mapping)
 NativeExecutable::NativeExecutable(void* code, size_t size, Vector<BytecodeMapping> mapping)