Skip to content

ports/windows: Add FFI module support with libffi.#42

Draft
andrewleech wants to merge 1 commit intomasterfrom
pr/ports-windows-ffi
Draft

ports/windows: Add FFI module support with libffi.#42
andrewleech wants to merge 1 commit intomasterfrom
pr/ports-windows-ffi

Conversation

@andrewleech
Copy link
Copy Markdown
Owner

Summary

Adds the ffi module to the Windows port by building libffi from source as a submodule dependency. Disabled by default (MICROPY_PY_FFI=0); set to 1 in a build or variant to enable.

When enabled, libffi is configured and built into the build directory and linked statically. modffi.c is included and the standard ffi module becomes available, also turning on MICROPY_TRACKED_ALLOC for callback storage.

Testing

mingw build of the windows port with MICROPY_PY_FFI=1; ffi exercised by the pydfu app variant which depends on it.

Add the ffi module to the Windows port by building libffi from source as
a submodule dependency. Disabled by default (MICROPY_PY_FFI=0); set to 1
in the build (e.g. on the make command line or in a variant) to enable.

When enabled, libffi is configured and built into the build directory and
linked statically. modffi.c is included and the standard ffi module
becomes available, also turning on MICROPY_TRACKED_ALLOC for callback
storage.

Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
@andrewleech
Copy link
Copy Markdown
Owner Author

/retest

1 similar comment
@andrewleech
Copy link
Copy Markdown
Owner Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants