Support real iOS devices with a device build of the Monero library
This commit is contained in:
Binary file not shown.
@@ -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));
|
||||||
|
}
|
||||||
@@ -26,7 +26,10 @@ targets:
|
|||||||
CODE_SIGN_STYLE: Automatic
|
CODE_SIGN_STYLE: Automatic
|
||||||
CODE_SIGNING_ALLOWED: NO
|
CODE_SIGNING_ALLOWED: NO
|
||||||
SWIFT_OBJC_BRIDGING_HEADER: Koins/Bridge/Koins-Bridging-Header.h
|
SWIFT_OBJC_BRIDGING_HEADER: Koins/Bridge/Koins-Bridging-Header.h
|
||||||
OTHER_LDFLAGS:
|
OTHER_LDFLAGS[sdk=iphoneos*]:
|
||||||
|
- "$(inherited)"
|
||||||
|
- "-lkoins_monero_device"
|
||||||
|
OTHER_LDFLAGS[sdk=iphonesimulator*]:
|
||||||
- "$(inherited)"
|
- "$(inherited)"
|
||||||
- "-lkoins_monero_merged"
|
- "-lkoins_monero_merged"
|
||||||
LIBRARY_SEARCH_PATHS:
|
LIBRARY_SEARCH_PATHS:
|
||||||
|
|||||||
Reference in New Issue
Block a user