Support real iOS devices with a device build of the Monero library

This commit is contained in:
2026-09-19 13:42:04 +08:00
parent 3e1a39d4d7
commit a3af802166
3 changed files with 14 additions and 1 deletions
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
#include <libkern/OSCacheControl.h>
#include <stddef.h>
// randomx (pulled in by monero's proof-of-work code) calls the compiler-rt
// builtin __clear_cache from its AArch64 JIT. libSystem exports it on macOS and
// the simulator, but not on iOS devices, so provide the same implementation
// compiler-rt uses on Darwin.
void __clear_cache(void *start, void *end) {
sys_icache_invalidate(start, (size_t)((char *)end - (char *)start));
}