-
Notifications
You must be signed in to change notification settings - Fork 158
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
Fails to build for emscripten with REALM_ENABLE_SYNC=ON
, assignment to const
#7752
Comments
➤ PM Bot commented: Jira ticket: RCORE-2147 |
Hey @dg0yt, Emscripten is unfortunately not an officially supported code path (it's experimental at the preview stage right now) and it looks like it's regressed. Only the JavaScript language binding has been ever built with Emscripten, and it's likely that none of the other language bindings would work without some effort. It's possible that even if the compile errors you encountered are fixed you would still get a dud at runtime. My recommendation would be to not test the realm ports against the wasm triplets. Is there a way we could mark the port incompatible with them? |
Yes. Is there an official reference to back this limitation? |
I don't believe we have it explicitly spelled out for realm-core anywhere, but we only test realm-core on the platforms that the Atlas Device SDKs run on and Emscripten is definitely not on the list. In any case, I am the original author of the Emscripten code path in realm-core, so please take my word for how limited it is. |
@dg0yt, is there more to do here? I don't know when more work on supporting sync in emscripten will be scheduled, but this is not a supported configuration for now. |
No. You may close the issue if you want. |
Expected results
I'm updating the vcpkg port, and testing locally with emscripten.
Actual Results
Build failure in src/realm/object-store/sync/app.cpp:244, trying to assign to const.
Steps & Code to Reproduce
vcpkg install realm-core:wasm32-emscripten
with updated recipe for 14.8.0 and using openssl to provide hash algorithms.= microsoft/vcpkg#39043 minus
REALM_ENABLE_SYNC=OFF
Core version
Core version: 14.8.0
The text was updated successfully, but these errors were encountered: