[GNC-dev] Porting to Apple silicon

john jralls at ceridwen.us
Wed Apr 24 11:19:41 EDT 2024


Interestingly a very similar commit just landed: https://github.com/WebKit/WebKit/commit/34d7f551c40ab7253255304e1443394d5e493333. I'll give it a try in a few days.

Regards,
John Ralls


> On Apr 23, 2024, at 18:08, Sherlock <sh025622 at gmail.com> wrote:
> 
> I have a webkitgtk-2.32.0 patch that enables reports to work (included below).
> 
> The crash reported in https://bugs.webkit.org/show_bug.cgi?id=248802
> occurs because Apple Silicon builds enforces their Hardened Runtime by default (see https://developer.apple.com/documentation/apple-silicon/porting-just-in-time-compilers-to-apple-silicon).
> 
> 
> *** PlatformUse.h.orig	Tue Apr 23 13:54:25 2024
> --- PlatformUse.h	Tue Apr 23 14:15:31 2024
> ***************
> *** 313,320 ****
> --- 313,323 ----
>  #define USE_LEGACY_CFNETWORK_DOWNLOADS 1
>  #endif
> 
> + /*
>  #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000) \
>      || (PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000)
> + */
> + #if OS(MAC_OS_X)
>  #if USE(APPLE_INTERNAL_SDK)
>  /* Always use the macro on internal builds */
>  #define USE_PTHREAD_JIT_PERMISSIONS_API 0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20240424/c39e8aef/attachment.htm>


More information about the gnucash-devel mailing list