Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating static nif code for OTP25 #213

Merged
merged 2 commits into from
Aug 22, 2022

Conversation

dominicletz
Copy link
Contributor

With OTP25 the Erlang team has introduced an official macro to support Elixir statically linked nifs STATIC_ERLANG_NIF_LIBNAME. This commit switches the compilation unit to use STATIC_ERLANG_NIF_LIBNAME instead of the previous macro override hack.

@dominicletz
Copy link
Contributor Author

I'm using this change for https://github.com/elixir-desktop/ios-example-app - which packages exqlite to run on iOS. This now runs on stock OTP25 vs. previously only on a custom branch of OTP24

@warmwaffles
Copy link
Member

This looks good. Tests pass so I assume it's backwards compatible to OTP23. Nice.

@warmwaffles warmwaffles merged commit a7af537 into elixir-sqlite:main Aug 22, 2022
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