Skip to content

Use static libpowersync to simplify build #12

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

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Use static libpowersync to simplify build #12

merged 5 commits into from
Oct 22, 2024

Conversation

rkistner
Copy link

Instead of using a submodule, this now uses the pre-built libpowersync-wasm.a from powersync-ja/powersync-sqlite-core#35.

This simplifies the build, and removes the need for workarounds previously used in powersync-sqlite-core for WASM builds. The resulting build is also slightly smaller (889K -> 850K).

In the future, we can also use this approach to build against a matrix of powersync-sqlite-core versions, instead of just the latest one.

@rkistner rkistner requested a review from mugikhan October 14, 2024 11:51
Copy link

@mugikhan mugikhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@rkistner rkistner merged commit 4b7244f into main Oct 22, 2024
27 checks passed
@rkistner rkistner deleted the static-lib branch October 22, 2024 07:26
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