Carlo Kok via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am Mi., 2. Sep. 2020, 15:01:
> On Wed, Sep 2, 2020, at 14:40, Sven Barth via fpc-pascal wrote: > > Carlo Kok via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am > Mi., 2. Sep. 2020, 11:09: > > > > Is there something else I need to do to allow FFI to work on arm64? (Does > this depend on a dylib? or a static library?, and do I need to explicitly > reference that?) > > > You need the libffi library compiled for macOS on ARM ( > https://github.com/libffi/libffi ) and then you might need to add a > "{$linklibrary ffi}" or so, cause the ffi unit was not set tested on macOS. > > > Thanks. It doesn't look like it's officially supported: > > https://sourceware.org/libffi/ > The calling convention is the same as on iOS, so you can try to build it for that target... (and build from their development version on GitHub) Regards, Sven >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal