Problem: Could not allocate dynamic translator buffer

`Could not allocate dynamic translator buffer` error while
trying to perform any memory-related operation.

This happens on aarch64 (MacBook Pro M1)

Solution: ensure aarch64 architecture is properly checked against

Fixes #1556
This commit is contained in:
Yurii Rashkovskii 2022-02-20 07:46:30 -08:00
parent 051ae39f08
commit f652340bec
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ struct uc_struct;
* *
* Issue: https://github.com/desktop/desktop/issues/12978 * Issue: https://github.com/desktop/desktop/issues/12978
*/ */
#if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && defined(__arm__) #if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && (defined(__arm__) || defined(__aarch64__))
#define USE_MAP_JIT #define USE_MAP_JIT
#endif #endif