Compile for android. Probably needs a bunch of work to run, but it's a step in a direction.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4087 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-12-29 21:58:54 +00:00
parent 94d7d2e3e0
commit d9aee6d05f
2 changed files with 30 additions and 5 deletions

View File

@ -29,7 +29,9 @@
#include <backtrace.h>
#ifndef _WIN32
#ifndef __ANDROID__
#include <execinfo.h>
#endif
#include <unistd.h>
#endif
@ -1147,7 +1149,7 @@ JSValue tf_task_allocate_promise(tf_task_t* task, promiseid_t* out_promise)
#ifdef _WIN32
count = CaptureStackBackTrace(0, sizeof(buffer) / sizeof(*buffer), buffer, NULL);
stack_hash = fnv32a((const void*)buffer, sizeof(void*) * count, stack_hash);
#else
#elif !defined(__ANDROID__)
count = backtrace(buffer, sizeof(buffer) / sizeof(*buffer));
stack_hash = fnv32a((const void*)buffer, sizeof(void*) * count, stack_hash);
#endif