Explorar o código

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

Andrew Kaster hai 1 ano
pai
achega
26e5c20cfa
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Userland/Libraries/LibJS/JIT/NativeExecutable.cpp

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

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